# HG changeset patch # User Mads Kiilerich # Date 1603189072 -7200 # Node ID c1677e2d9e675f927dd106326807fbace13c123d # Parent 9a0c41175e66ffb14b81d20207f01abd5d2e6ce4 mail: don't skip authentication just because smtp_password is empty diff -r 9a0c41175e66 -r c1677e2d9e67 kallithea/lib/celerylib/tasks.py --- 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())