diff options
Diffstat (limited to 'app/Controllers/authController.php')
| -rw-r--r-- | app/Controllers/authController.php | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/app/Controllers/authController.php b/app/Controllers/authController.php index e7bff363e..342c577e2 100644 --- a/app/Controllers/authController.php +++ b/app/Controllers/authController.php @@ -141,9 +141,11 @@ class FreshRSS_auth_Controller extends Minz_ActionController { ); if ($ok) { // Set session parameter to give access to the user. - Minz_Session::_param('currentUser', $username); - Minz_Session::_param('passwordHash', $conf->passwordHash); - Minz_Session::_param('csrf'); + Minz_Session::_params([ + 'currentUser' => $username, + 'passwordHash' => $conf->passwordHash, + 'csrf' => false, + ]); FreshRSS_Auth::giveAccess(); // Set cookie parameter if nedded. @@ -190,9 +192,11 @@ class FreshRSS_auth_Controller extends Minz_ActionController { $ok = password_verify($password, $s); unset($password); if ($ok) { - Minz_Session::_param('currentUser', $username); - Minz_Session::_param('passwordHash', $s); - Minz_Session::_param('csrf'); + Minz_Session::_params([ + 'currentUser' => $username, + 'passwordHash' => $s, + 'csrf' => false, + ]); FreshRSS_Auth::giveAccess(); Minz_Translate::init($conf->language); |
