修改单词错误

Signed-off-by: WangTsing-Yan <wangqing@uniontech.com>
pull/72/head
WangTsing-Yan 2022-09-09 08:58:38 +00:00 committed by Gitee
parent 1cf88c1ecf
commit ed1d4cbf74
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()