[AntonyAntonio] - Add remember me test [skip ci]

This commit is contained in:
Ivan Diaz 2016-07-16 03:54:29 -03:00
parent 342aab48b7
commit 5949c85aeb
1 changed files with 2 additions and 2 deletions

View File

@ -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) {