summaryrefslogtreecommitdiff
path: root/app/Model
diff options
context:
space:
mode:
Diffstat (limited to 'app/Model')
-rw-r--r--app/Model/Authentication.php4
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());