Ver código fonte

Authentication is only applied when both the username and password have values. (#2937)

tags/0.6.0-preview-workflow.1
Leo Q 1 ano atrás
pai
commit
cc754122fc
Nenhuma conta vinculada ao e-mail do autor do commit
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1
    1
      api/libs/smtp.py

+ 1
- 1
api/libs/smtp.py Ver arquivo

@@ -16,7 +16,7 @@ class SMTPClient:
smtp = smtplib.SMTP(self.server, self.port)
if self._use_tls:
smtp.starttls()
if (self.username):
if self.username and self.password:
smtp.login(self.username, self.password)
msg = MIMEMultipart()
msg['Subject'] = mail['subject']

Carregando…
Cancelar
Salvar