yulingwei 4 years ago
parent 22ac6bf293
commit 4058eb3963

@ -99,6 +99,7 @@ class SafeController extends BaseController{
// if(empty($oldpwd)) {
// $this->error("旧密码不能为空");
// }
$this->checkPaswwordFormat($safepwd);
if(empty($safepwd)) {
$this->error("安全密码不能为空");
}
@ -107,12 +108,8 @@ class SafeController extends BaseController{
}
$id = get_pid();
$data['second_pwd'] = $this->think_ucenter_md5($safepwd, UC_AUTH_KEY);
$updateRs = M("promote","tab_")->where(['id'=>$id])->save($data);
if($updateRs) {
$this->success("修改成功");
}else {
$this->error("修改失败,请重新操作");
}
M("promote","tab_")->where(['id'=>$id])->save($data);
$this->success("修改成功");
}
$this->display();

Loading…
Cancel
Save