diff --git a/application/api/controller/User.php b/application/api/controller/User.php index 762d2e5d84fbf6e1c2548f405e3416cda212c693..d77a67adecf8bb1aa85e35bb317ca71c42470994 100644 --- a/application/api/controller/User.php +++ b/application/api/controller/User.php @@ -297,7 +297,7 @@ class User extends Api */ public function resetpwd() { - $type = $this->request->post("type"); + $type = $this->request->post("type", "mobile"); $mobile = $this->request->post("mobile"); $email = $this->request->post("email"); $newpassword = $this->request->post("newpassword");