mirror of https://gitee.com/karson/fastadmin.git
update application/admin/library/Auth.php.
解决同一时间只能在一个地方登录的时候token清空导致两边都挤掉的BUGpull/217/head
parent
df183a86e4
commit
dbf47c182a
|
|
@ -183,7 +183,9 @@ class Auth extends \fast\Auth
|
|||
if (Config::get('fastadmin.login_unique')) {
|
||||
$my = Admin::get($admin['id']);
|
||||
if (!$my || $my['token'] != $admin['token']) {
|
||||
$this->logout();
|
||||
$this->logined = false; //重置登录状态
|
||||
Session::delete("admin");
|
||||
Cookie::delete("keeplogin");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue