Explorar el Código

94057 [90064 auto login after the registration] implementatio

hiroki-h hace 3 años
padre
commit
ea9cc82846
Se han modificado 1 ficheros con 1 adiciones y 3 borrados
  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);
             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 }));
           req.flash('successMessage', req.t('message.successfully_created',{ username: userData.username }));
 
 
           return registerSuccessHandler(req, res, userData);
           return registerSuccessHandler(req, res, userData);