Bug fixes on Remember me function
This commit is contained in:
parent
8217d8b873
commit
e4d7781dbe
@ -53,7 +53,6 @@ function checkRememberMe()
|
||||
return true;
|
||||
}
|
||||
|
||||
$Security->addToBlacklist();
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -180,8 +180,10 @@ class dbUsers extends dbJSON
|
||||
public function getByRememberToken($token)
|
||||
{
|
||||
foreach ($this->db as $username=>$fields) {
|
||||
if ($fields['tokenRemember']==$token) {
|
||||
return $username;
|
||||
if (!empty($fields['tokenRemember'])) {
|
||||
if ($fields['tokenRemember']==$token) {
|
||||
return $username;
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
|
@ -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'=>'',
|
||||
|
Loading…
Reference in New Issue
Block a user