Commit 77e40284 by 梁建民

css

parent 8d85758c
......@@ -11,7 +11,7 @@ class IndexController extends BaseController
public function _initialize()
{
parent::_initialize();
if (!cookie('token') && ACTION_NAME != 'login') {
if (!cookie('token') && ACTION_NAME != 'login' && ACTION_NAME != 'register' && ACTION_NAME != 'index' && ACTION_NAME != 'indexsearch') {
$this->redirect('/login');
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment