Example #1
0
 /**
  * 重置用户密码
  */
 public function reset_password()
 {
     try {
         $this->throwMsgCheck('is_post');
         $req = req();
         $user = $req->post('user');
         $code = $req->post('code');
         $password = $req->post('password');
         lib()->load("UserControl");
         $uc = new UserControl();
         $uc->reset_password_finish($user, $code, $password);
         $this->rt_msg['status'] = true;
     } catch (\Exception $ex) {
         $this->rt_msg['msg'] = $ex->getMessage();
     }
 }