Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
周伟奇
/
bmw-ocr
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
df8b6833
authored
2022-06-23 15:08:39 +0800
by
周伟奇
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
token modify part3
1 parent
f2a7c4b4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
src/apps/account/authentication.py
src/apps/account/authentication.py
View file @
df8b683
...
...
@@ -42,7 +42,7 @@ class MyJSONWebTokenAuthentication(JSONWebTokenAuthentication):
if
jwt_value
is
None
:
return
None
jwt_str
=
str
(
jwt_value
)[
-
10
:]
jwt_str
=
str
(
jwt_value
,
'UTF-8'
)[
-
10
:]
is_expired
=
rh
.
get_token
(
jwt_str
)
if
isinstance
(
is_expired
,
str
):
rh
.
set_token
(
jwt_str
)
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment