소스 검색

fix: OAUTH_MERGE_ACCOUNTS_BY_EMAIL not being correctly read

Jun Siang Cheah 11 달 전
부모
커밋
a1f4706aa1
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      backend/main.py

+ 1 - 1
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: