Просмотр исходного кода

94057 [90064 auto login after the registration] implementatio

hiroki-h 3 лет назад
Родитель
Сommit
784636f34f
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      packages/app/src/server/routes/login.js

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

@@ -29,7 +29,8 @@ 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.
       if (!userData.password) {
       if (!userData.password) {
         return res.redirect('/me/password');
         return res.redirect('/me/password');
       }
       }