itizawa 6 лет назад
Родитель
Сommit
5da5663ad3
1 измененных файлов с 4 добавлено и 0 удалено
  1. 4 0
      src/server/routes/login-passport.js

+ 4 - 0
src/server/routes/login-passport.js

@@ -253,6 +253,10 @@ module.exports = function(crowi, app) {
       return loginFailure(req, res, next);
     }
 
+    /**
+     * Emails are not empty
+     * See https://github.com/passport/express-4.x-facebook-example/blob/master/views/profile.ejs
+     */
     const email = response.emails[0].value;
     const username = email.slice(0, email.indexOf('@'));