From b377b57516ce1193b4581be8b531cd0193f58d7d Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sat, 1 Aug 2015 12:46:55 -0400 Subject: Add config parameter to disable/enable RememberMe authentication --- app/Model/Authentication.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/Model') diff --git a/app/Model/Authentication.php b/app/Model/Authentication.php index f09312bd..93a463f1 100644 --- a/app/Model/Authentication.php +++ b/app/Model/Authentication.php @@ -54,7 +54,7 @@ class Authentication extends Base } // We try first with the RememberMe cookie - if ($this->backend('rememberMe')->authenticate()) { + if (REMEMBER_ME_AUTH && $this->backend('rememberMe')->authenticate()) { return true; } @@ -193,7 +193,7 @@ class Authentication extends Base */ private function createRememberMeSession(array $values) { - if (! empty($values['remember_me'])) { + if (REMEMBER_ME_AUTH && ! empty($values['remember_me'])) { $credentials = $this->backend('rememberMe') ->create($this->userSession->getId(), Request::getIpAddress(), Request::getUserAgent()); -- cgit v1.2.3