mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-03-20 02:41:54 +01:00
Merge pull request #46 from memolog/fix-twitter-strategy
Use twitter.id_str instead of twitter.id in twitter strategy, great catch @memolog!
This commit is contained in:
@@ -56,7 +56,7 @@ module.exports = function(passport, config) {
|
||||
},
|
||||
function(token, tokenSecret, profile, done) {
|
||||
User.findOne({
|
||||
'twitter.id': profile.id
|
||||
'twitter.id_str': profile.id
|
||||
}, function(err, user) {
|
||||
if (err) {
|
||||
return done(err);
|
||||
|
||||
Reference in New Issue
Block a user