misc: pass request to django.contrib.auth.authenticate() (#51566)
This commit is contained in:
parent
d106f3da90
commit
3678c49fc0
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue