guhongwei 3 years ago
parent
commit
56d7a03781
1 changed files with 4 additions and 2 deletions
  1. 4 2
      app/controller/.user.js

+ 4 - 2
app/controller/.user.js

@@ -8,6 +8,7 @@ module.exports = {
       "nickname",
       "gender",
       "work",
+      "email",
       "status",
     ],
   },
@@ -25,6 +26,7 @@ module.exports = {
       "nickname",
       "gender",
       "work",
+      "email",
       "status",
     ],
   },
@@ -63,7 +65,7 @@ module.exports = {
     requestBody: ["!phone", "!password"],
   },
   updatePwd: {
-    params: ['!id'],
-    requestBody: ['!password'],
+    params: ["!id"],
+    requestBody: ["!password"],
   },
 };