Write RememberMe cookie only after 2FA has been validated

This commit is contained in:
Frédéric Guillot
2021-04-04 17:30:33 -07:00
committed by fguillot
parent b08760c5fc
commit 31ce583743
4 changed files with 11 additions and 5 deletions

View File

@@ -127,7 +127,7 @@ class UserSessionTest extends Base
$_SESSION['postAuthenticationValidated'] = false;
$this->assertFalse($userSession->isPostAuthenticationValidated());
$userSession->validatePostAuthentication();
$userSession->setPostAuthenticationAsValidated();
$this->assertTrue($userSession->isPostAuthenticationValidated());
$_SESSION['user'] = array();