From a544d7e6180baadadf1dab52ab011eedabb2a70a Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Tue, 29 Aug 2017 17:08:57 +0200 Subject: [PATCH] authentic2: add token lifetime to change email notifications (fixes #18240) --- templates/authentic2/change_email_notification_body.html | 3 +++ templates/authentic2/change_email_notification_body.txt | 1 + 2 files changed, 4 insertions(+) diff --git a/templates/authentic2/change_email_notification_body.html b/templates/authentic2/change_email_notification_body.html index 44f051a..f0208ee 100644 --- a/templates/authentic2/change_email_notification_body.html +++ b/templates/authentic2/change_email_notification_body.html @@ -13,4 +13,7 @@ Pour valider ce changement, veuillez cliquer sur le bouton suivantĀ : {% include "emails/button-link.html" with url=link label="Valider le changement" %} +

+Ce courriel sera valide pendant {{ token_lifetime }}. +

{% endblock %} diff --git a/templates/authentic2/change_email_notification_body.txt b/templates/authentic2/change_email_notification_body.txt index 845f72b..2faae98 100644 --- a/templates/authentic2/change_email_notification_body.txt +++ b/templates/authentic2/change_email_notification_body.txt @@ -8,4 +8,5 @@ Pour valider ce changement, veuillez cliquer sur le lien suivantĀ : {{ link }} +Ce courriel sera valide pendant {{ token_lifetime }}. {% endblock %} -- 2.1.4