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

94057 [90064 auto login after the registration] implementatio

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

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

@@ -135,9 +135,7 @@ module.exports = function(crowi, app) {
             sendEmailToAllAdmins(userData);
           }
 
-          // add a flash message to inform the user that processing was successful -- 2017.09.23 Yuki Takei
-          // cz. loginSuccess method doesn't work on it's own when using passport
-          //      because `req.login()` prepared by passport is not called.
+          //I created a flash message in case the user information that processing was successful is not stored in the session.
           req.flash('successMessage', req.t('message.successfully_created',{ username: userData.username }));
 
           return registerSuccessHandler(req, res, userData);