misc: pass request to django.contrib.auth.authenticate() (#51566)

This commit is contained in:
Benjamin Dauvergne 2021-03-02 12:05:30 +01:00
parent d106f3da90
commit 3678c49fc0
1 changed files with 1 additions and 1 deletions

View File

@ -264,7 +264,7 @@ class LoginView(ProfileMixin, LogMixin, View):
return response
def authenticate(self, request, login, attributes):
user = auth.authenticate(saml_attributes=attributes)
user = auth.authenticate(request=request, saml_attributes=attributes)
next_url = self.get_next_url(default=resolve_url(settings.LOGIN_REDIRECT_URL))
if user is not None:
if user.is_active: