add username and passwordHash to Session so that generateAuthHash works

This commit is contained in:
Isaac Connor 2018-07-11 09:54:15 -04:00
parent 21438d17ac
commit f10509690b
1 changed files with 2 additions and 0 deletions

View File

@ -90,6 +90,8 @@ class AppController extends Controller {
} else {
$this->Session->Write( 'user', $user['User'] );
$this->Session->Write( 'user.Username', $user['User']['Username'] );
$this->Session->Write( 'username', $user['User']['Username'] );
$this->Session->Write( 'passwordHash', $user['User']['Password'] );
$this->Session->Write( 'user.Enabled', $user['User']['Enabled'] );
}
}