[AntonyAntonio] - Add remember me test [skip ci]
This commit is contained in:
parent
342aab48b7
commit
5949c85aeb
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue