From d537656aca348da7b4dc4898b5a538f09931a894 Mon Sep 17 00:00:00 2001 From: Emmanuel Cazenave Date: Tue, 31 Jul 2018 14:17:56 +0200 Subject: [PATCH] django 1.11: delete ambiguous arguments in authenticate (#21489) django 1.11 can call LDAPBackendPasswordLost.authenticate with a request argument instead of a user due to introspection. https://code.djangoproject.com/ticket/28207 --- src/authentic2/backends/ldap_backend.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/authentic2/backends/ldap_backend.py b/src/authentic2/backends/ldap_backend.py index fb5ed1c7d..257311d9c 100644 --- a/src/authentic2/backends/ldap_backend.py +++ b/src/authentic2/backends/ldap_backend.py @@ -1175,7 +1175,7 @@ class LDAPBackend(object): class LDAPBackendPasswordLost(LDAPBackend): - def authenticate(self, user=None, **kwargs): + def authenticate(self, user=None): if not user: return config = self.get_config()