parent
1cf88c1ecf
commit
ed1d4cbf74
|
@ -25,7 +25,7 @@ def get_request_user(request):
|
||||||
if user and user.is_authenticated:
|
if user and user.is_authenticated:
|
||||||
return user
|
return user
|
||||||
try:
|
try:
|
||||||
user, tokrn = JWTAuthentication().authenticate(request)
|
user, token = JWTAuthentication().authenticate(request)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
pass
|
pass
|
||||||
return user or AnonymousUser()
|
return user or AnonymousUser()
|
||||||
|
|
Loading…
Reference in New Issue