Pre Merge pull request !72 from WangTsing-Yan/N/A

pull/72/MERGE
WangTsing-Yan 2022-09-09 08:58:39 +00:00 committed by Gitee
commit a47a4e7bd2
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 1 deletions

View File

@ -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()