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
This commit is contained in:
Emmanuel Cazenave 2018-07-31 14:17:56 +02:00 committed by Frédéric Péters
parent 54eb9e5dd2
commit d537656aca
1 changed files with 1 additions and 1 deletions

View File

@ -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()