summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2014-09-10 21:11:13 -0400
committerJason R. Coombs <jaraco@jaraco.com>2014-09-10 21:11:13 -0400
commita2954ba9c2062e55491b61d0f37f0bd78d315ade (patch)
tree1a425b53e4006694a683dc6f7ab2f605c1408dbd
parent504fcef2916a84be00669efb9709c53f3b193d01 (diff)
downloadcherrypy-a2954ba9c2062e55491b61d0f37f0bd78d315ade.tar.gz
Adding documentation inferred from the implementation
-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