summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cherrypy/lib/httpauth.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/cherrypy/lib/httpauth.py b/cherrypy/lib/httpauth.py
index 24b4ca77..0897ea2a 100644
--- a/cherrypy/lib/httpauth.py
+++ b/cherrypy/lib/httpauth.py
@@ -339,6 +339,7 @@ def _checkBasicResponse(auth_map, password, method='GET', encrypt=None,
try:
candidate = encrypt(auth_map["password"], auth_map["username"])
except TypeError:
+ # if encrypt only takes one parameter, it's the password
candidate = encrypt(auth_map["password"])
return candidate == password