Commit cd40d4c2 authored by ZZH's avatar ZZH

add qkadmin auth 2024-03-18

parent 54704328
......@@ -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")
......
......@@ -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"),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment