From e26f1f5b4ad1a4c52b64dc9a18d3ecd5ce94b5cd Mon Sep 17 00:00:00 2001 From: ralf Date: Thu, 21 Nov 2024 13:18:52 +0100 Subject: [PATCH] fix a warning and a typo --- api/src/Session.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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