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
a1f4706a
Commit
a1f4706a
authored
May 27, 2024
by
Jun Siang Cheah
Browse files
fix: OAUTH_MERGE_ACCOUNTS_BY_EMAIL not being correctly read
parent
6a36039a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
backend/main.py
backend/main.py
+1
-1
No files found.
backend/main.py
View file @
a1f4706a
...
...
@@ -537,7 +537,7 @@ async def oauth_callback(provider: str, request: Request):
if
not
user
:
# If the user does not exist, check if merging is enabled
if
OAUTH_MERGE_ACCOUNTS_BY_EMAIL
:
if
OAUTH_MERGE_ACCOUNTS_BY_EMAIL
.
value
:
# Check if the user exists by email
email
=
user_data
.
get
(
"email"
,
""
).
lower
()
if
not
email
:
...
...
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