Add missing request in ModelBackend authenticate

This commit is contained in:
M.Ravi 2023-11-29 19:05:40 +05:30
parent 2f1926a4b3
commit 889c71d069

View file

@ -6,8 +6,8 @@ logger = logging.getLogger(__name__)
class UngleichLDAPBackend(ModelBackend):
def authenticate(self, username=None, password=None, **kwargs):
user = super().authenticate(username, password, **kwargs)
def authenticate(self, request, username=None, password=None, **kwargs):
user = super().authenticate(request, username=username, password=password, **kwargs)
if user:
user.create_ldap_account(password)
else: