more bugs

This commit is contained in:
Julian Lam 2014-08-15 22:48:52 -04:00
parent 3efedd0eed
commit 48c9d4fa92
1 changed files with 2 additions and 2 deletions

View File

@ -58,7 +58,7 @@
try { try {
var json = JSON.parse(body); var json = JSON.parse(body);
OAuth.parseUserReturn(body, function(err, profile) { OAuth.parseUserReturn(json, function(err, profile) {
if (err) return done(err); if (err) return done(err);
profile.provider = constants.name; profile.provider = constants.name;
done(null, profile); done(null, profile);
@ -79,7 +79,7 @@
try { try {
var json = JSON.parse(body); var json = JSON.parse(body);
OAuth.parseUserReturn(body, function(err, profile) { OAuth.parseUserReturn(json, function(err, profile) {
if (err) return done(err); if (err) return done(err);
profile.provider = constants.name; profile.provider = constants.name;
done(null, profile); done(null, profile);