[修复]修复登录bug

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

View File

@ -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');
}
}