|
|
@@ -30,9 +30,9 @@ module.exports = function(crowi, app) {
|
|
|
});
|
|
|
}
|
|
|
// 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) {
|
|
|
- return res.redirect('/me/password');
|
|
|
+ return res.redirect('/');
|
|
|
}
|
|
|
|
|
|
const { redirectTo } = req.session;
|