Check for empty string for SMTP password (#1317)

Follow-up fix for #1136 based on this comment:
https://github.com/webrecorder/browsertrix-cloud/issues/1136#issuecomment-1777119534
This commit is contained in:
Tessa Walsh 2023-10-26 12:44:55 -04:00 committed by GitHub
parent 4591db1afe
commit 5fadc630ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,7 +43,7 @@ class EmailSender:
server.ehlo()
server.starttls(context=context)
server.ehlo()
if self.password is not None:
if self.password:
server.login(self.sender, self.password)
server.send_message(msg)
# server.sendmail(self.sender, receiver, message)