diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-08-01 12:46:55 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-08-01 12:46:55 -0400 |
commit | b377b57516ce1193b4581be8b531cd0193f58d7d (patch) | |
tree | faff50e1ca948ee195ae13a0cbdc2787871fe375 /app/Model | |
parent | fb448187078ace6574f145c39c319c38a287c84b (diff) |
Add config parameter to disable/enable RememberMe authentication
Diffstat (limited to 'app/Model')
-rw-r--r-- | app/Model/Authentication.php | 4 |
1 files changed, 2 insertions, 2 deletions
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()); |