#7157: Fix RemoteUserAuthentication calling django authenticate with request argument

This commit is contained in:
Peter Uittenbroek 2020-01-23 16:50:31 +01:00
parent e4a26ad58a
commit 3ff543c334

View File

@ -220,6 +220,6 @@ class RemoteUserAuthentication(BaseAuthentication):
header = "REMOTE_USER" header = "REMOTE_USER"
def authenticate(self, request): def authenticate(self, request):
user = authenticate(remote_user=request.META.get(self.header)) user = authenticate(request=request, remote_user=request.META.get(self.header))
if user and user.is_active: if user and user.is_active:
return (user, None) return (user, None)