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

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

@@ -254,6 +254,7 @@ module.exports = function(crowi, app) {
     }
 
     // Emails are not empty
+    // both Facebook and Google use OAuth 2.0, the code is similar
     // 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('@'));