diff --git a/application/api/controller/User.php b/application/api/controller/User.php index b13c9002..32f9f6bc 100644 --- a/application/api/controller/User.php +++ b/application/api/controller/User.php @@ -298,7 +298,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");