Skip to content

Commit

Permalink
return 401 instead of 400 if no password or username is provided
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabian Jakobs committed May 5, 2013
1 parent a647ee4 commit 2639889
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/passport-http/strategies/basic.js
Expand Up @@ -78,7 +78,7 @@ BasicStrategy.prototype.authenticate = function(req) {
var userid = credentials[0];
var password = credentials[1];
if (!userid || !password) {
return this.fail(400);
return this.fail(401);
}

var self = this;
Expand Down

0 comments on commit 2639889

Please sign in to comment.