|
@@ -99,7 +99,7 @@ class IndexController extends MobileController
|
|
|
|
|
|
|
|
|
public function sub_respwd($oldpwd,$newpwd){
|
|
|
- if($_POST){
|
|
|
+
|
|
|
if(checkstr($oldpwd) || checkstr($newpwd)){
|
|
|
$this->ajaxReturn(['code'=>0,'info'=>L('您输入的信息有误')]);
|
|
|
}
|
|
@@ -119,9 +119,9 @@ class IndexController extends MobileController
|
|
|
$this->ajaxReturn(['code'=>0,'info'=>L('密码修改失败')]);
|
|
|
}
|
|
|
|
|
|
- }else{
|
|
|
- $this->ajaxReturn(['code'=>0,'info'=>L('非法操作')]);
|
|
|
- }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
|
|
|
|