mirror of
https://gitlab.com/megazordpobeda/DataRush.git
synced 2026-11-20 15:37:48 +00:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
9 files changed
+244
-68
No files matched your search
@@ -19,7 +19,10 @@ class BearerAuth(HttpBearer):
|
||||
except Exception:
|
||||
raise AuthenticationError
|
||||
|
||||
user = User.objects.get(id=data["id"])
|
||||
try:
|
||||
user = User.objects.get(id=data["id"])
|
||||
except User.DoesNotExist:
|
||||
raise AuthenticationError
|
||||
return user
|
||||
|
||||
@staticmethod
|
||||
|
||||
Reference in new issue
Block a user