add more logging

This commit is contained in:
Willnow, Patrick 2024-10-03 23:06:05 +02:00
parent 0a7373dae1
commit 5b2e1ca7cd

View File

@ -2244,7 +2244,8 @@ async def oauth_callback(provider: str, request: Request, response: Response):
# Check if the user exists
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:
role = user.role
if Users.get_num_users() == 1: