mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-09-16 17:22:32 +03:00
Merge 7f46251f7d
into e9f67d3afc
This commit is contained in:
commit
12a05d4526
|
@ -73,6 +73,7 @@ class BasicAuthentication(BaseAuthentication):
|
||||||
|
|
||||||
user = authenticate(username=uname, password=passwd)
|
user = authenticate(username=uname, password=passwd)
|
||||||
if user is not None and user.is_active:
|
if user is not None and user.is_active:
|
||||||
|
request.user = user
|
||||||
return user
|
return user
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user