mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-05 04:50:12 +03:00
Merge a3d51a9350
into 8f6173cd8a
This commit is contained in:
commit
c64f7b794e
|
@ -273,7 +273,7 @@ The following example will authenticate any incoming request as the user given b
|
||||||
except User.DoesNotExist:
|
except User.DoesNotExist:
|
||||||
raise exceptions.AuthenticationFailed('No such user')
|
raise exceptions.AuthenticationFailed('No such user')
|
||||||
|
|
||||||
return (user, None)
|
return user, None
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user