mirror of
https://github.com/open-webui/open-webui
synced 2024-11-07 00:59:52 +00:00
add more logging
This commit is contained in:
parent
0a7373dae1
commit
5b2e1ca7cd
@ -2244,7 +2244,8 @@ async def oauth_callback(provider: str, request: Request, response: Response):
|
|||||||
|
|
||||||
# Check if the user exists
|
# Check if the user exists
|
||||||
user = Users.get_user_by_oauth_sub(provider_sub)
|
user = Users.get_user_by_oauth_sub(provider_sub)
|
||||||
|
# print all user data content for debugging
|
||||||
|
log.info(f"User data: {user_data}")
|
||||||
if user:
|
if user:
|
||||||
role = user.role
|
role = user.role
|
||||||
if Users.get_num_users() == 1:
|
if Users.get_num_users() == 1:
|
||||||
|
Loading…
Reference in New Issue
Block a user