Skip to content

Commit

Permalink
Removed unnecessary console.log statements.
Browse files Browse the repository at this point in the history
  • Loading branch information
havard committed Jan 17, 2011
1 parent de5ff3a commit d2e6370
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions openid.js
Expand Up @@ -515,7 +515,6 @@ openid.associate = function(provider, callback, algorithm)
{
if(statusCode != 200 || data == null)
{
console.log(data);
return callback({
error: 'HTTP request failed',
error_code: '' + statusCode,
Expand Down Expand Up @@ -790,13 +789,7 @@ function _checkSignature(params)
hmac.update(message);
var ourSignature = hmac.digest('base64');

if(ourSignature != _param(params, 'openid.sig'))
{
console.log('Signature mismatch: ' + ourSignature + ' != ' + _param(params, 'openid.sig'));
return false;
}

return true;
return ourSignature == _param(params, 'openid.sig');
}

// Recursive parameter lookup for node v0.2.x
Expand Down

0 comments on commit d2e6370

Please sign in to comment.