소스 검색

feat: Update TEMP_MAIL processing in config.py to extract username before '@'

chengchongzhen 1 년 전
부모
커밋
77aea54bcf
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      config.py

+ 1 - 1
config.py

@@ -23,7 +23,7 @@ class Config:
         # 加载 .env 文件
         load_dotenv(dotenv_path)
 
-        self.temp_mail = os.getenv("TEMP_MAIL", "").strip()
+        self.temp_mail = os.getenv("TEMP_MAIL", "").strip().split("@")[0]
         self.domain = os.getenv("DOMAIN", "").strip()
 
         self.check_config()