Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
U
unify_api2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chaonan
unify_api2
Commits
bbdb3898
Commit
bbdb3898
authored
Aug 09, 2022
by
lcn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
兼容
parent
0c4d5d12
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
jwt_user.py
unify_api/modules/users/procedures/jwt_user.py
+5
-1
No files found.
unify_api/modules/users/procedures/jwt_user.py
View file @
bbdb3898
...
...
@@ -24,7 +24,11 @@ async def auth_phone_verify(phone, verify):
verify_server
=
await
RedisUtils
()
.
get
(
f
"sms:sms_{phone}"
)
log
.
info
(
f
"auth_phone_verify phone:{phone}, verify_server:{verify_server},"
f
"verify:{verify}"
)
if
not
verify_server
or
verify
!=
verify_server
.
decode
():
if
not
verify_server
:
return
False
if
isinstance
(
verify_server
,
str
)
and
verify
!=
verify_server
:
return
False
if
isinstance
(
verify_server
,
bytes
)
and
verify
!=
verify_server
.
decode
():
return
False
return
True
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment