Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
e475f025
Commit
e475f025
authored
Jul 01, 2024
by
Sergey Mihaylin
Browse files
fix: merge request fail (remove picture_claim)
parent
6e934c2d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
backend/main.py
backend/main.py
+2
-1
No files found.
backend/main.py
View file @
e475f025
...
@@ -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
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment