yulingwei 4 years ago
parent 4058eb3963
commit 2680f92079

@ -54,11 +54,9 @@ class SafeController extends BaseController{
$this->checkPaswwordFormat($confirmpassword); $this->checkPaswwordFormat($confirmpassword);
$data['second_pwd'] = $this->think_ucenter_md5($confirmpassword, UC_AUTH_KEY); $data['second_pwd'] = $this->think_ucenter_md5($confirmpassword, UC_AUTH_KEY);
$id = get_pid(); $id = get_pid();
$updateRs = M("promote","tab_")->where(['id'=>$id])->save($data); M("promote","tab_")->where(['id'=>$id])->save($data);
if($updateRs) { recordPromoteLogs('安全管理','设置安全密码');
recordPromoteLogs('安全管理','设置安全密码'); $this->success("安全密码设置成功");
$this->success("安全密码设置成功");
}
} }
public function think_ucenter_md5($str, $key = 'ThinkUCenter') public function think_ucenter_md5($str, $key = 'ThinkUCenter')

Loading…
Cancel
Save