From dbf47c182a4fab040c08440cb30872f7f188b9d1 Mon Sep 17 00:00:00 2001 From: sixXing <464401240@qq.com> Date: Mon, 10 Aug 2020 16:04:47 +0800 Subject: [PATCH] update application/admin/library/Auth.php. 解决同一时间只能在一个地方登录的时候token清空导致两边都挤掉的BUG --- application/admin/library/Auth.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/application/admin/library/Auth.php b/application/admin/library/Auth.php index 73826e4..312bd40 100644 --- a/application/admin/library/Auth.php +++ b/application/admin/library/Auth.php @@ -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; } } -- libgit2 0.24.0