From aaa17c2545eb4d0ef1f89d8bc135b85df6e8c034 Mon Sep 17 00:00:00 2001 From: sebastien Date: Tue, 19 Nov 2024 14:48:56 +0100 Subject: [PATCH] hotfix update previous commit --- canaille/app/mails_sending_conditions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/canaille/app/mails_sending_conditions.py b/canaille/app/mails_sending_conditions.py index 92a5c132..af617a89 100644 --- a/canaille/app/mails_sending_conditions.py +++ b/canaille/app/mails_sending_conditions.py @@ -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. "