!217 update application/admin/library/Auth.php.

Merge pull request !217 from sixXing/N/A
pull/217/MERGE
Karson 2020-08-12 20:39:36 +08:00 committed by Gitee
commit c5da47b16b
1 changed files with 3 additions and 1 deletions

View File

@ -183,7 +183,9 @@ class Auth extends \fast\Auth
if (Config::get('fastadmin.login_unique')) { if (Config::get('fastadmin.login_unique')) {
$my = Admin::get($admin['id']); $my = Admin::get($admin['id']);
if (!$my || $my['token'] != $admin['token']) { if (!$my || $my['token'] != $admin['token']) {
$this->logout(); $this->logined = false; //重置登录状态
Session::delete("admin");
Cookie::delete("keeplogin");
return false; return false;
} }
} }