From e5f6e364f184eaa535c6b29cbafe3418ea83d53f Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Fri, 3 Apr 2015 14:40:00 -0400 Subject: Improve and fix issues with 2FA --- app/Auth/RememberMe.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'app/Auth') 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()) -- cgit v1.2.3