Mercurial > kallithea
changeset 8697:c1677e2d9e67
mail: don't skip authentication just because smtp_password is empty
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Tue, 20 Oct 2020 12:17:52 +0200 |
parents | 9a0c41175e66 |
children | 4df740e355ae |
files | kallithea/lib/celerylib/tasks.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/kallithea/lib/celerylib/tasks.py Mon Oct 12 21:05:32 2020 +0200 +++ b/kallithea/lib/celerylib/tasks.py Tue Oct 20 12:17:52 2020 +0200 @@ -337,7 +337,7 @@ smtp_serv.ehlo() # populate esmtp_features smtp_serv.esmtp_features["auth"] = smtp_auth - if smtp_username and smtp_password: + if smtp_username and smtp_password is not None: smtp_serv.login(smtp_username, smtp_password) smtp_serv.sendmail(app_email_from, recipients, msg.as_string())