Commit a1f4706a authored by Jun Siang Cheah's avatar Jun Siang Cheah
Browse files

fix: OAUTH_MERGE_ACCOUNTS_BY_EMAIL not being correctly read

parent 6a36039a
...@@ -537,7 +537,7 @@ async def oauth_callback(provider: str, request: Request): ...@@ -537,7 +537,7 @@ async def oauth_callback(provider: str, request: Request):
if not user: if not user:
# If the user does not exist, check if merging is enabled # 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 # Check if the user exists by email
email = user_data.get("email", "").lower() email = user_data.get("email", "").lower()
if not email: if not email:
......
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