From a1f4706aa17957e9eba8694ec3a44e9f68eec43f Mon Sep 17 00:00:00 2001 From: Jun Siang Cheah Date: Mon, 27 May 2024 18:16:36 +0100 Subject: [PATCH] fix: OAUTH_MERGE_ACCOUNTS_BY_EMAIL not being correctly read --- backend/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/main.py b/backend/main.py index 1782af0c6..ac6b3a010 100644 --- a/backend/main.py +++ b/backend/main.py @@ -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: