!103 后台用户退出后,重置登录状态

Merge pull request !103 from lepig/master
pull/103/MERGE
lepig 2019-03-05 17:11:22 +08:00 committed by Karson
commit 62283eb2e9
1 changed files with 1 additions and 0 deletions

View File

@ -77,6 +77,7 @@ class Auth extends \fast\Auth
}
$admin->token = '';
$admin->save();
$this->logined = false; //重置登录状态
Session::delete("admin");
Cookie::delete("keeplogin");
return true;