This commit is contained in:
Bernd Bestel 2020-10-19 18:41:16 +02:00
parent 94214b867a
commit 6e1e90984f
No known key found for this signature in database
GPG Key ID: 71BD34C0D4891300

View File

@ -38,7 +38,7 @@ class DefaultAuthMiddleware extends AuthMiddleware
if ($user !== null && password_verify($inputPassword, $user->password)) if ($user !== null && password_verify($inputPassword, $user->password))
{ {
$sessionKey = SessionService::getInstance()->CreateSession($user->id, $stayLoggedInPermanently); $sessionKey = SessionService::getInstance()->CreateSession($user->id, $stayLoggedInPermanently);
parent::SetSessionCookie($sessionKey); self::SetSessionCookie($sessionKey);
if (password_needs_rehash($user->password, PASSWORD_DEFAULT)) if (password_needs_rehash($user->password, PASSWORD_DEFAULT))
{ {