提交 69d26f3b 编写于 作者: huangxuan258's avatar huangxuan258

后台编辑用户修改密码后同步修改到ucenter

上级 39d3998b
......@@ -275,6 +275,18 @@ class Admin_user extends ADMIN_Controller {
}
if ($mypay >= 0) {
$this->db->query ( "UPDATE " . $this->db->dbprefix . "user SET mypay='$mypay' WHERE uid=$uid " );
}
if ($this->setting ["ucenter_open"]) {
$this->load->model ( "ucenter_model" );
if(empty($email)){
$email=$this->user['email'];
}
$_pwd=$this->input->post ( 'password' );
if(!empty($_pwd)){
$this->ucenter_model->uppass ( $this->user ['username'], '',$_pwd, $email,1 );
}
}
$message = '用户资料编辑成功!';
unset ( $type );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册