Write RememberMe cookie only after 2FA has been validated
This commit is contained in:
committed by
fguillot
parent
b08760c5fc
commit
31ce583743
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user