mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
[修复]修复登录bug
This commit is contained in:
parent
4ca54aa7ef
commit
9722f39d17
@ -32,7 +32,7 @@ class Login extends BasicAdmin {
|
||||
* 控制器基础方法
|
||||
*/
|
||||
public function _initialize() {
|
||||
if ($this->_isLogin() && $this->request->action() !== 'out') {
|
||||
if (session('user') && $this->request->action() !== 'out') {
|
||||
$this->redirect('@admin');
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user