diff --git a/application/api/controller/User.php b/application/api/controller/User.php index 762d2e5d..d77a67ad 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");