fixed #31 - twitter profile picture now used as nodebb avatar in lieu of

email address for gravatar
This commit is contained in:
Julian Lam
2013-07-24 12:52:16 -04:00
parent 762cecf1c3
commit bea5dff563
4 changed files with 17 additions and 4 deletions

View File

@@ -22,7 +22,7 @@
consumerSecret: global.config['social:twitter:secret'],
callbackURL: nconf.get('url') + 'auth/twitter/callback'
}, function(token, tokenSecret, profile, done) {
login_module.loginViaTwitter(profile.id, profile.username, function(err, user) {
login_module.loginViaTwitter(profile.id, profile.username, profile.photos, function(err, user) {
if (err) { return done(err); }
done(null, user);
});