Improve and fix issues with 2FA

This commit is contained in:
Frederic Guillot
2015-04-03 14:40:00 -04:00
parent c72bca04a8
commit e5f6e364f1
2 changed files with 4 additions and 1 deletions

View File

@@ -103,6 +103,9 @@ class RememberMe extends Base
// Create the session
$this->userSession->refresh($this->user->getById($record['user_id']));
// Do not ask 2FA for remember me session
$this->session['2fa_validated'] = true;
$this->container['dispatcher']->dispatch(
'auth.success',
new AuthEvent(self::AUTH_NAME, $this->userSession->getId())