Skip to content

Commit

Permalink
Fixed SmtpMailer to check for username and password
Browse files Browse the repository at this point in the history
  • Loading branch information
jcadam14 committed Feb 23, 2024
1 parent 499fe11 commit 5e5fd61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions regtech_mail_api/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@
mailer = SmtpMailer(
settings.smtp_host, # type: ignore
settings.smtp_port,
settings.smtp_username.get_secret_value(), # type: ignore
settings.smtp_password.get_secret_value(), # type: ignore
settings.smtp_username.get_secret_value() if settings.smtp_username else None, # type: ignore
settings.smtp_password.get_secret_value() if settings.smtp_password else None, # type: ignore
settings.smtp_use_tls,
)
case EmailMailerType.MOCK:
Expand Down

0 comments on commit 5e5fd61

Please sign in to comment.