Skip to content

Commit

Permalink
feat: Update TEMP_MAIL processing in config.py to extract username be…
Browse files Browse the repository at this point in the history
…fore '@'
  • Loading branch information
chengazhen committed Jan 15, 2025
1 parent 0c52882 commit 77aea54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def __init__(self):
# 加载 .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()
Expand Down

0 comments on commit 77aea54

Please sign in to comment.