mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 12:25:20 +00:00
fix: OAUTH_MERGE_ACCOUNTS_BY_EMAIL not being correctly read
This commit is contained in:
parent
6a36039a59
commit
a1f4706aa1
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue