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

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

@@ -253,10 +253,8 @@ 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
-     */
+    // 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('@'));