diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-12-10 20:21:12 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-12-10 20:21:12 -0500 |
commit | 6e54cbd6e9642eb4cfe5dce22d43c9dfafac324e (patch) | |
tree | 0d83c03d29aba6b3d832bff8d828f694e6fb4770 /app/Subscriber/AuthSubscriber.php | |
parent | 786e360d0b8a18f6810ff798824c6ae3f5583ec0 (diff) |
Skip 2FA for RememberMeAuth
Diffstat (limited to 'app/Subscriber/AuthSubscriber.php')
-rw-r--r-- | app/Subscriber/AuthSubscriber.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/Subscriber/AuthSubscriber.php b/app/Subscriber/AuthSubscriber.php index a0e0be63..efda9663 100644 --- a/app/Subscriber/AuthSubscriber.php +++ b/app/Subscriber/AuthSubscriber.php @@ -53,6 +53,10 @@ class AuthSubscriber extends Base implements EventSubscriberInterface $userAgent ); + if ($event->getAuthType() === 'RememberMe') { + $this->userSession->validatePostAuthentication(); + } + $this->sessionStorage->hasSubtaskInProgress = $this->subtask->hasSubtaskInProgress($this->userSession->getId()); if (isset($this->sessionStorage->hasRememberMe) && $this->sessionStorage->hasRememberMe) { |