Don't clear SignMe cookie due conflict with new smctoken cookie.
This commit is contained in:
the-djmaze 2022-12-02 15:32:27 +01:00
parent 543725dd42
commit 2aca295851

View file

@ -329,7 +329,8 @@ trait UserAuth
return $aResult;
}
\SnappyMail\Log::notice(self::AUTH_SIGN_ME_TOKEN_KEY, 'invalid');
Utils::ClearCookie(self::AUTH_SIGN_ME_TOKEN_KEY);
// Don't clear due to smctoken cookie missing at initialization and login checkbox
// Utils::ClearCookie(self::AUTH_SIGN_ME_TOKEN_KEY);
}
return null;
}
@ -385,8 +386,9 @@ trait UserAuth
catch (\Throwable $oException)
{
\SnappyMail\Log::warning(self::AUTH_SIGN_ME_TOKEN_KEY, $oException->getMessage());
// Don't clear due to smctoken cookie missing at initialization and login checkbox
// $this->ClearSignMeData();
}
$this->ClearSignMeData();
}
return null;
}