mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-13 04:45:19 +00:00
fix: merge request fail (remove picture_claim)
This commit is contained in:
parent
6e934c2d17
commit
e475f025b7
1 changed files with 2 additions and 1 deletions
|
|
@ -1920,7 +1920,8 @@ async def oauth_callback(provider: str, request: Request, response: Response):
|
|||
if existing_user:
|
||||
raise HTTPException(400, detail=ERROR_MESSAGES.EMAIL_TAKEN)
|
||||
|
||||
picture_url = user_data.get("picture", "")
|
||||
picture_claim = webui_app.state.config.OAUTH_PICTURE_CLAIM
|
||||
picture_url = user_data.get(picture_claim, "")
|
||||
if picture_url:
|
||||
# Download the profile image into a base64 string
|
||||
try:
|
||||
|
|
|
|||
Loading…
Reference in a new issue