2
0
hiroki-h 3 жил өмнө
parent
commit
6cddd7c174

+ 2 - 2
packages/app/src/server/routes/login.js

@@ -30,9 +30,9 @@ module.exports = function(crowi, app) {
         });
         });
       }
       }
       // RegisterFormValidator.registerRule had code to guarantee that there was a password,
       // RegisterFormValidator.registerRule had code to guarantee that there was a password,
-      // but login.register did not. However, the /me/password routing does not exist and needs to be rewritten.
+      // but login.register did not. so I wrote this code.
       if (!userData.password) {
       if (!userData.password) {
-        return res.redirect('/me/password');
+        return res.redirect('/');
       }
       }
 
 
       const { redirectTo } = req.session;
       const { redirectTo } = req.session;