소스 검색

Merge pull request #10401 from xinhai-ai/main

fix: email claim doesn't effect
Timothy Jaeryang Baek 2 달 전
부모
커밋
d5a049dc54
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 3
      backend/open_webui/utils/oauth.py

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

@@ -292,9 +292,7 @@ class OAuthManager:
             # If the user does not exist, check if signups are enabled
             if auth_manager_config.ENABLE_OAUTH_SIGNUP:
                 # Check if an existing user with the same email already exists
-                existing_user = Users.get_user_by_email(
-                    user_data.get("email", "").lower()
-                )
+                existing_user = Users.get_user_by_email(email)
                 if existing_user:
                     raise HTTPException(400, detail=ERROR_MESSAGES.EMAIL_TAKEN)