Skip to content
This repository was archived by the owner on Apr 20, 2025. It is now read-only.

Commit 77aea54

Browse files
committed
feat: Update TEMP_MAIL processing in config.py to extract username before '@'
1 parent 0c52882 commit 77aea54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: config.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def __init__(self):
2323
# 加载 .env 文件
2424
load_dotenv(dotenv_path)
2525

26-
self.temp_mail = os.getenv("TEMP_MAIL", "").strip()
26+
self.temp_mail = os.getenv("TEMP_MAIL", "").strip().split("@")[0]
2727
self.domain = os.getenv("DOMAIN", "").strip()
2828

2929
self.check_config()

0 commit comments

Comments
 (0)