Use twitter.id_str instead of twitter.id because project.id is returned string explicitly by the following change

d9112c4c05
This commit is contained in:
Yutaka Yamaguchi
2013-08-26 22:05:45 +09:00
parent 3b4cfbbbc4
commit e56693954b

View File

@@ -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);