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
cd40d4c2
Commit
cd40d4c2
authored
Mar 18, 2024
by
ZZH
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add qkadmin auth 2024-03-18
parent
54704328
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
login_auth.py
unify_api/modules/common/procedures/login_auth.py
+3
-3
current_user_info.py
unify_api/modules/users/views/current_user_info.py
+2
-1
No files found.
unify_api/modules/common/procedures/login_auth.py
View file @
cd40d4c2
...
...
@@ -95,9 +95,9 @@ def is_need_verify(path):
log
.
info
(
f
"{path} not need verify"
)
return
False
if
re
.
search
(
"/qkadmin"
,
path
):
log
.
info
(
f
"{path} not need verify"
)
return
False
#
if re.search("/qkadmin", path):
#
log.info(f"{path} not need verify")
#
return False
# if re.match("^/unify-api/users/logout/user-logout/?$", path):
# log.info("logout not need verify")
...
...
unify_api/modules/users/views/current_user_info.py
View file @
cd40d4c2
...
...
@@ -66,6 +66,7 @@ async def get_user_info(request) -> UserInfoResponse:
zhiweiu_auth
=
user_info
.
get
(
"zhiweiu_auth"
)
if
not
zhiweiu_auth
and
zhiweiu_auth
!=
0
:
zhiweiu_auth
=
1
log
.
info
(
f
"user info:{user_id}, {user_info}"
)
return
UserInfoResponse
(
user_id
=
user_id
,
# nick_name=user_info.get("nickname") or user_info.get("real_name"),
...
...
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