fix a warning and a typo

This commit is contained in:
ralf 2024-11-21 13:18:52 +01:00
parent e841be9b4f
commit e26f1f5b4a

View File

@ -584,7 +584,7 @@ class Session
if ($check_2fa !== false) if ($check_2fa !== false)
{ {
try { try {
$this->checkMultifactorAuth($check_2fa, $_COOKIE[self::REMEMBER_ME_COOKIE]); $this->checkMultifactorAuth($check_2fa, $_COOKIE[self::REMEMBER_ME_COOKIE] ?? null);
} }
catch(\Exception $e) { catch(\Exception $e) {
$this->cd_reason = $e->getCode(); $this->cd_reason = $e->getCode();
@ -758,7 +758,7 @@ class Session
} }
/** /**
* Check multifcator authemtication * Check multifcator authentication
* *
* @param string $code 2fa-code * @param string $code 2fa-code
* @param string $token remember me token * @param string $token remember me token