Browse Source

add warning

chester.cheng 3 tháng trước cách đây
mục cha
commit
1b6e12a255
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      backend/open_webui/utils/oauth.py

+ 1 - 0
backend/open_webui/utils/oauth.py

@@ -282,6 +282,7 @@ class OAuthManager:
 
                 name = user_data.get(username_claim)
                 if not name:
+                    log.warning("Username claim is missing, using email as name")
                     name = email
 
                 role = self.get_user_role(None, user_data)