diff --git a/api/src/Session.php b/api/src/Session.php index 903b8bcd99..5dcbca113c 100644 --- a/api/src/Session.php +++ b/api/src/Session.php @@ -584,7 +584,7 @@ class Session if ($check_2fa !== false) { try { - $this->checkMultifactorAuth($check_2fa, $_COOKIE[self::REMEMBER_ME_COOKIE]); + $this->checkMultifactorAuth($check_2fa, $_COOKIE[self::REMEMBER_ME_COOKIE] ?? null); } catch(\Exception $e) { $this->cd_reason = $e->getCode(); @@ -758,7 +758,7 @@ class Session } /** - * Check multifcator authemtication + * Check multifcator authentication * * @param string $code 2fa-code * @param string $token remember me token