Browse Source

success to get email and newPassword from request

kaori 4 years ago
parent
commit
99576636c7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/server/routes/forgot-password.js

+ 1 - 1
src/server/routes/forgot-password.js

@@ -63,7 +63,7 @@ module.exports = function(crowi, app) {
 
 
   api.put = async(req, res) => {
-    const { newPassword, email } = req.body;
+    const { email, newPassword } = req.body.params;
 
     //  findOne User
     const user = User.findOne({ email });