summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--wsgitools/middlewares.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/wsgitools/middlewares.py b/wsgitools/middlewares.py
index 654f5db..2b6b51b 100644
--- a/wsgitools/middlewares.py
+++ b/wsgitools/middlewares.py
@@ -300,11 +300,12 @@ class DictAuthChecker:
@type users: {str: str}
@param users: is a dict mapping usernames to password."""
self.users = users
- def __call__(self, username, password):
+ def __call__(self, username, password, environ):
"""check_function interface taking username and password and resulting
in a bool.
@type username: str
@type password: str
+ @type environ: {str: str}
@rtype: bool
"""
return username in self.users and self.users[username] == password