mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-29 13:04:03 +03:00
This commit is contained in:
parent
96001c5de6
commit
655e803adf
|
@ -227,6 +227,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)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user