Add missing request in ModelBackend authenticate
This commit is contained in:
parent
2f1926a4b3
commit
889c71d069
1 changed files with 2 additions and 2 deletions
|
@ -6,8 +6,8 @@ logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
class UngleichLDAPBackend(ModelBackend):
|
class UngleichLDAPBackend(ModelBackend):
|
||||||
def authenticate(self, username=None, password=None, **kwargs):
|
def authenticate(self, request, username=None, password=None, **kwargs):
|
||||||
user = super().authenticate(username, password, **kwargs)
|
user = super().authenticate(request, username=username, password=password, **kwargs)
|
||||||
if user:
|
if user:
|
||||||
user.create_ldap_account(password)
|
user.create_ldap_account(password)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue