aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/config/passport.js
diff options
context:
space:
mode:
authorDennis Eriksen <dennis.se@gmail.com>2013-05-15 11:34:05 +0200
committerDennis Eriksen <dennis.se@gmail.com>2013-05-15 11:34:05 +0200
commit4907c23e0dffb295cb81bc10958ff029243d4d64 (patch)
treee1e44b4baef52d73f8543d26bbfb290a147e3032 /config/passport.js
parentauthCallback now checks for user email (diff)
downloadDivid-4907c23e0dffb295cb81bc10958ff029243d4d64.tar.gz
facebookauth now logs profile to console
Diffstat (limited to '')
-rw-r--r--config/passport.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/config/passport.js b/config/passport.js
index 9518409..68d5204 100644
--- a/config/passport.js
+++ b/config/passport.js
@@ -52,6 +52,7 @@ module.exports = function (passport, config) {
// looks up the user in the database. Will create the user if it does not exist
User.findOne({ 'facebook.id': profile.id }, function(err, user) {
if(err) return done(err);
+ console.log(profile);
if (!user) {
user = new User({
name: profile.displayName