🐱尝试打印密码前六位

This commit is contained in:
Qinyang Liu 2024-07-04 13:19:47 +08:00 committed by GitHub
parent 1862ad9906
commit a645ae32f8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

3
run.py
View File

@ -28,6 +28,7 @@ if config["email_push"]["enable"] or config["rss_subscribe"]["enable"]:
port = email_settings["port"]
use_tls = email_settings["use_tls"]
password = os.getenv("SMTP_PWD")
print("密码检测是否存在:", password[:6], "**********")
if config["email_push"]["enable"]:
print("邮件推送已启用")
@ -66,4 +67,4 @@ if config["rss_subscribe"]["enable"]:
subject="清羽飞扬の最新文章:" + article["title"],
body="文章链接:" + article["link"] + "\n" + "文章内容:" + article["summary"] + "\n" + "发布时间:" + article["published"],
use_tls=use_tls
)
)