瀏覽代碼

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()