summaryrefslogtreecommitdiff
path: root/app/Subscriber
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-12-10 20:21:12 -0500
committerFrederic Guillot <fred@kanboard.net>2015-12-10 20:21:12 -0500
commit6e54cbd6e9642eb4cfe5dce22d43c9dfafac324e (patch)
tree0d83c03d29aba6b3d832bff8d828f694e6fb4770 /app/Subscriber
parent786e360d0b8a18f6810ff798824c6ae3f5583ec0 (diff)
Skip 2FA for RememberMeAuth
Diffstat (limited to 'app/Subscriber')
-rw-r--r--app/Subscriber/AuthSubscriber.php4
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) {