Example #1
0
 /**
  * 修改用户密码
  */
 public function edit_password()
 {
     try {
         $this->throwMsgCheck('is_post', 'is_login');
         $req = req()->_plain();
         lib()->load("UserControl");
         $uc = new UserControl();
         $uc->edit_user_password(login_user(), $req->post('old'), $req->post('new'));
         $this->rt_msg['status'] = true;
     } catch (\Exception $ex) {
         $this->rt_msg['msg'] = $ex->getMessage();
     }
 }