Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #104 from evanp/ReturnAssociateResult

authenticateUser() should pass results of associateTokenToUser() to callback
  • Loading branch information...
commit 0abf6ee5ebfc6ed0b6076a6b472201d80fd9c9ae 2 parents 70bb1e9 + 7839fe4
@ciaranj authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/auth.strategies/oauth/_oauthservices.js
View
2  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);
});
});
}
Please sign in to comment.
Something went wrong with that request. Please try again.