diff --git a/web/api/app/Controller/AppController.php b/web/api/app/Controller/AppController.php index 4f350ea6b..4421dec4d 100644 --- a/web/api/app/Controller/AppController.php +++ b/web/api/app/Controller/AppController.php @@ -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'] ); } }