From 5949c85aeb41ca44d6700586f4b891b851979dd2 Mon Sep 17 00:00:00 2001 From: Ivan Diaz Date: Sat, 16 Jul 2016 03:54:29 -0300 Subject: [PATCH] [AntonyAntonio] - Add remember me test [skip ci] --- server/controllers/user/login.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/controllers/user/login.php b/server/controllers/user/login.php index 87800419..67bf5dd2 100644 --- a/server/controllers/user/login.php +++ b/server/controllers/user/login.php @@ -20,7 +20,7 @@ class LoginController extends Controller { return; } - if ($this->areCredentialsValid() || $this->isTokenValid()) { + if ($this->areCredentialsValid() || $this->isRememberTokenValid()) { $this->createUserSession(); $this->createSessionCookie(); @@ -38,7 +38,7 @@ class LoginController extends Controller { return ($this->getUserByInputCredentials() !== null); } - private function isTokenValid() { + private function isRememberTokenValid() { $rememberToken = Controller::request('rememberToken'); if ($rememberToken) {