diff --git a/Application/Home/Controller/SafeController.class.php b/Application/Home/Controller/SafeController.class.php index 0891a3690..aa37c1988 100644 --- a/Application/Home/Controller/SafeController.class.php +++ b/Application/Home/Controller/SafeController.class.php @@ -54,11 +54,9 @@ class SafeController extends BaseController{ $this->checkPaswwordFormat($confirmpassword); $data['second_pwd'] = $this->think_ucenter_md5($confirmpassword, UC_AUTH_KEY); $id = get_pid(); - $updateRs = M("promote","tab_")->where(['id'=>$id])->save($data); - if($updateRs) { - recordPromoteLogs('安全管理','设置安全密码'); - $this->success("安全密码设置成功"); - } + M("promote","tab_")->where(['id'=>$id])->save($data); + recordPromoteLogs('安全管理','设置安全密码'); + $this->success("安全密码设置成功"); } public function think_ucenter_md5($str, $key = 'ThinkUCenter')