hotfix update previous commit

This commit is contained in:
sebastien 2024-11-19 14:48:56 +01:00
parent bfff1bcdc1
commit aaa17c2545

View file

@ -6,7 +6,7 @@ from canaille.core.mails import send_compromised_password_check_failure_mail
def check_if_send_mail_to_admins(form, api_url, hashed_password_suffix):
if current_app.features.has_smtp:
if current_app.features.has_smtp and current_app.config["CANAILLE"]["ADMIN_EMAIL"]:
flash(
_(
"Password compromise investigation failed. "