Commit a5a02bbd by 梁建民

bug

parent c2fdcb6b
...@@ -11,7 +11,7 @@ class IndexController extends BaseController ...@@ -11,7 +11,7 @@ class IndexController extends BaseController
public function _initialize() public function _initialize()
{ {
parent::_initialize(); parent::_initialize();
if (!cookie('token') && ACTION_NAME != 'login' && ACTION_NAME != 'register' && ACTION_NAME != 'index' && ACTION_NAME != 'indexsearch') { if (!cookie('token') && ACTION_NAME != 'login' && ACTION_NAME != 'register' && ACTION_NAME != 'index' && ACTION_NAME != 'indexsearch' && ACTION_NAME != 'forget') {
$this->redirect('/login'); $this->redirect('/login');
} }
} }
......
...@@ -108,6 +108,8 @@ ...@@ -108,6 +108,8 @@
$mobile.parent('.input-wrap').addClass('error'); $mobile.parent('.input-wrap').addClass('error');
$(".error-text").show().find("span").text('请填写手机号');
return false; return false;
} }
...@@ -116,6 +118,8 @@ ...@@ -116,6 +118,8 @@
$password.parent().parent('.input-wrap').addClass('error'); $password.parent().parent('.input-wrap').addClass('error');
$(".error-text").show().find("span").text('请填写密码');
return false; return false;
} }
......
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