From a2954ba9c2062e55491b61d0f37f0bd78d315ade Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Wed, 10 Sep 2014 21:11:13 -0400 Subject: Adding documentation inferred from the implementation --- cherrypy/lib/httpauth.py | 1 + 1 file changed, 1 insertion(+) 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 -- cgit v1.2.1