diff options
Diffstat (limited to 'app/Controllers/authController.php')
| -rw-r--r-- | app/Controllers/authController.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/Controllers/authController.php b/app/Controllers/authController.php index 90c9a9e03..73a640748 100644 --- a/app/Controllers/authController.php +++ b/app/Controllers/authController.php @@ -1,4 +1,5 @@ <?php +declare(strict_types=1); /** * This controller handles action about authentication. @@ -116,11 +117,11 @@ class FreshRSS_auth_Controller extends FreshRSS_ActionController { $limits = FreshRSS_Context::$system_conf->limits; $this->view->cookie_days = (int)round($limits['cookie_duration'] / 86400, 1); - $isPOST = Minz_Request::isPost() && !Minz_Session::param('POST_to_GET'); + $isPOST = Minz_Request::isPost() && !Minz_Session::paramBoolean('POST_to_GET'); Minz_Session::_param('POST_to_GET'); if ($isPOST) { - $nonce = Minz_Session::param('nonce', ''); + $nonce = Minz_Session::paramString('nonce'); $username = Minz_Request::paramString('username'); $challenge = Minz_Request::paramString('challenge'); |
