Example #1
0
 /**
  * 请求忘记用户密码
  */
 public function forget_password()
 {
     try {
         $this->throwMsgCheck('is_post');
         $req = req();
         $email = $req->post('email');
         $captcha = $req->post('captcha');
         lib()->load("UserControl");
         $uc = new UserControl();
         $uc->reset_password($email, $captcha);
         $this->rt_msg['status'] = true;
     } catch (\Exception $ex) {
         $this->rt_msg['msg'] = $ex->getMessage();
         $this->rt_msg['code'] = $ex->getCode();
     }
 }