1
0
mirror of https://gitee.com/zoujingli/ThinkAdmin.git synced 2025-04-06 03:58:04 +08:00

[修复]修复登录bug

This commit is contained in:
邹景立 2017-04-14 19:11:54 +08:00 committed by GitHub
parent 4ca54aa7ef
commit 9722f39d17

@ -32,7 +32,7 @@ class Login extends BasicAdmin {
* 控制器基础方法 * 控制器基础方法
*/ */
public function _initialize() { public function _initialize() {
if ($this->_isLogin() && $this->request->action() !== 'out') { if (session('user') && $this->request->action() !== 'out') {
$this->redirect('@admin'); $this->redirect('@admin');
} }
} }