Permalink
Browse files

Merge pull request #104 from evanp/ReturnAssociateResult

authenticateUser() should pass results of associateTokenToUser() to callback
  • Loading branch information...
2 parents 70bb1e9 + 7839fe4 commit 0abf6ee5ebfc6ed0b6076a6b472201d80fd9c9ae @ciaranj committed May 28, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/auth.strategies/oauth/_oauthservices.js
@@ -179,7 +179,7 @@ exports.OAuthServices.prototype.authenticateUser = function(username, password,
if(result.token == null || result.verifier == null) { callback(new errors.OAuthProviderError("authenticateUser must return a object with fields [token, verifier]"), null); return;}
// Save the association between the key and the user (to make available for later retrival)
self.provider.associateTokenToUser(username, result.token, function(err, doc) {
- callback(err, result);
+ callback(err, doc);
});
});
}

0 comments on commit 0abf6ee

Please sign in to comment.