浏览代码

!435 修改密码类型默认手机号
* 修改密码类型默认手机号

小和 2 年之前
父节点
当前提交
db5574582e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      application/api/controller/User.php

+ 1 - 1
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");