Example #1
0
 /**
  * 发送新的验证码到新邮箱
  */
 public function edit_email_send_mail()
 {
     $req = req()->_plain();
     try {
         $this->throwMsgCheck('is_post', 'is_login', 'edit_email');
         lib()->load("UserControl");
         $uc = new UserControl();
         $uc->edit_email_send_mail(login_user(), $req->post('email'), $req->post('password'));
         $this->rt_msg['status'] = true;
     } catch (\Exception $ex) {
         $this->rt_msg['msg'] = $ex->getMessage();
     }
 }