瀏覽代碼

fixes #19634 (#20545)

tags/1.4.2
Anshuman Saini 5 月之前
父節點
當前提交
e40e9db39a
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 2 行新增1 行删除
  1. 2
    1
      api/libs/smtp.py

+ 2
- 1
api/libs/smtp.py 查看文件

@@ -28,7 +28,8 @@ class SMTPClient:
else:
smtp = smtplib.SMTP(self.server, self.port, timeout=10)

if self.username and self.password:
# Only authenticate if both username and password are non-empty
if self.username and self.password and self.username.strip() and self.password.strip():
smtp.login(self.username, self.password)

msg = MIMEMultipart()

Loading…
取消
儲存