Skip to content

Commit

Permalink
basic auth with sha1 fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
jifeon committed Mar 20, 2012
1 parent 0806209 commit df1ddb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/auth/basic.js
Expand Up @@ -79,7 +79,7 @@ Basic.prototype.isAuthenticated = function(request) {

// Ensure the username and password both match.
if(myUserName === clientUserName) {
if(htpasswd.validate(clientPasswordHash, myPasswordHash)) {
if(htpasswd.validate(myPasswordHash, clientPasswordHash)) {
authenticated = myUserName;
break;
}
Expand Down

0 comments on commit df1ddb1

Please sign in to comment.