Bug fixes on Remember me function

This commit is contained in:
Diego Najar 2018-01-01 20:19:45 +01:00
parent 8217d8b873
commit e4d7781dbe
3 changed files with 5 additions and 5 deletions

View File

@ -53,7 +53,6 @@ function checkRememberMe()
return true;
}
$Security->addToBlacklist();
return false;
}

View File

@ -180,10 +180,12 @@ class dbUsers extends dbJSON
public function getByRememberToken($token)
{
foreach ($this->db as $username=>$fields) {
if (!empty($fields['tokenRemember'])) {
if ($fields['tokenRemember']==$token) {
return $username;
}
}
}
return false;
}

View File

@ -379,8 +379,7 @@ function install($adminPassword, $email, $timezone)
'salt'=>$salt,
'email'=>$email,
'registered'=>$currentDate,
'tokenEmail'=>'',
'tokenEmailTTL'=>'2009-03-15 14:00',
'tokenRemember'=>'',
'tokenAuth'=>$tokenAuth,
'tokenAuthTTL'=>'2009-03-15 14:00',
'twitter'=>'',