mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-10 19:56:59 +03:00
This commit is contained in:
parent
96001c5de6
commit
655e803adf
|
@ -227,6 +227,6 @@ class RemoteUserAuthentication(BaseAuthentication):
|
|||
header = "REMOTE_USER"
|
||||
|
||||
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:
|
||||
return (user, None)
|
||||
|
|
Loading…
Reference in New Issue
Block a user