浏览代码

fix: merge request fail (remove picture_claim)

Sergey Mihaylin 10 月之前
父节点
当前提交
e475f025b7
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      backend/main.py

+ 2 - 1
backend/main.py

@@ -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: