|
|
@ -663,6 +663,11 @@ class UserController extends BaseController
|
|
|
|
if (!$this->checksafecode($u_uid['phone'], $code)) {
|
|
|
|
if (!$this->checksafecode($u_uid['phone'], $code)) {
|
|
|
|
$this->error("验证失败");
|
|
|
|
$this->error("验证失败");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
$user = M('user', 'tab_')->where($u_uid)->find();
|
|
|
|
|
|
|
|
if (!$user) {
|
|
|
|
|
|
|
|
$this->error("账号不存在");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$result = M('user', 'tab_')->where($u_uid)->setField('password', think_ucenter_md5($new_pwd, UC_AUTH_KEY));
|
|
|
|
$result = M('user', 'tab_')->where($u_uid)->setField('password', think_ucenter_md5($new_pwd, UC_AUTH_KEY));
|
|
|
|
if ($result != false) {
|
|
|
|
if ($result != false) {
|
|
|
|
$this->success("修改成功", U('User/login'));
|
|
|
|
$this->success("修改成功", U('User/login'));
|
|
|
|