From ae35b64ddcb2fb343092eea854a49110836706c7 Mon Sep 17 00:00:00 2001 From: PNPyrenees <85548796+PNPyrenees@users.noreply.github.com> Date: Tue, 26 Mar 2024 10:41:32 +0100 Subject: [PATCH] Update mail_check.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Correction de la fonction d'envoi de mail suite à une inscription d'un utilisateur pour qui il manquait des valeurs de variable attendu par le template --- backend/gncitizen/utils/mail_check.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/backend/gncitizen/utils/mail_check.py b/backend/gncitizen/utils/mail_check.py index a1b31da2..0952292c 100644 --- a/backend/gncitizen/utils/mail_check.py +++ b/backend/gncitizen/utils/mail_check.py @@ -91,7 +91,11 @@ def confirm_user_email(newuser, with_confirm_link=True): subject, to, from_addr, - html_message=template.format(activate_url=activate_url), + html_message=template.format( + activate_url=activate_url, + app_url=current_app.config["URL_APPLICATION"], + app_name=current_app.config["appName"], + ), ) except Exception as e: