diff --git a/bl-kernel/admin/controllers/login.php b/bl-kernel/admin/controllers/login.php index 9332e772..de7e95af 100644 --- a/bl-kernel/admin/controllers/login.php +++ b/bl-kernel/admin/controllers/login.php @@ -53,7 +53,6 @@ function checkRememberMe() return true; } - $Security->addToBlacklist(); return false; } diff --git a/bl-kernel/dbusers.class.php b/bl-kernel/dbusers.class.php index c432c51b..c77dc558 100644 --- a/bl-kernel/dbusers.class.php +++ b/bl-kernel/dbusers.class.php @@ -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; diff --git a/install.php b/install.php index e8c5ba30..10db7849 100644 --- a/install.php +++ b/install.php @@ -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'=>'',