Commit e475f025 authored by Sergey Mihaylin's avatar Sergey Mihaylin
Browse files

fix: merge request fail (remove picture_claim)

parent 6e934c2d
...@@ -1920,7 +1920,8 @@ async def oauth_callback(provider: str, request: Request, response: Response): ...@@ -1920,7 +1920,8 @@ async def oauth_callback(provider: str, request: Request, response: Response):
if existing_user: if existing_user:
raise HTTPException(400, detail=ERROR_MESSAGES.EMAIL_TAKEN) 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: if picture_url:
# Download the profile image into a base64 string # Download the profile image into a base64 string
try: try:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment