修改添加管理员密码key不同问题

master
chenzhi 5 years ago
parent dba78c08cd
commit 6241fb427d

@ -118,6 +118,8 @@ class UcenterMemberModel extends Model{
if($data = $this->create($data)){ if($data = $this->create($data)){
$data['username'] = $username; $data['username'] = $username;
$data['email'] = $email; $data['email'] = $email;
$data['password'] = think_ucenter_md5($password, UC_AUTH_KEY);
$data['second_pwd'] = think_ucenter_md5($second_pwd, UC_AUTH_KEY);
try { try {
$status = M('UcenterMember', 'sys_')->add($data); $status = M('UcenterMember', 'sys_')->add($data);
} catch (\Throwable $th) { } catch (\Throwable $th) {

Loading…
Cancel
Save