Permalink
Browse files

basic auth with sha1 fixed

  • Loading branch information...
1 parent 0806209 commit df1ddb198a750990b6a95735612473d5cdb2fa99 @jifeon jifeon committed Mar 20, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/auth/basic.js
View
@@ -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;
}

0 comments on commit df1ddb1

Please sign in to comment.