summaryrefslogtreecommitdiff
path: root/app/Auth
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-04-03 14:40:00 -0400
committerFrederic Guillot <fred@kanboard.net>2015-04-03 14:40:00 -0400
commite5f6e364f184eaa535c6b29cbafe3418ea83d53f (patch)
tree7c9c684aab9dca944f4cb5ef36d10d5165d65cfd /app/Auth
parentc72bca04a8be19b2da699ee58f9203f08318d241 (diff)
Improve and fix issues with 2FA
Diffstat (limited to 'app/Auth')
-rw-r--r--app/Auth/RememberMe.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/Auth/RememberMe.php b/app/Auth/RememberMe.php
index 4736442e..e8b20f37 100644
--- a/app/Auth/RememberMe.php
+++ b/app/Auth/RememberMe.php
@@ -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())