diff --git a/canaille/admin/mail.py b/canaille/admin/mail.py
index 04719f28..cbe97c03 100644
--- a/canaille/admin/mail.py
+++ b/canaille/admin/mail.py
@@ -1,6 +1,7 @@
import base64
import urllib.request
from flask import Blueprint, render_template, current_app, url_for, request
+from flask_babel import gettext as _
from canaille.flaskutils import admin_needed
from canaille.account import profile_hash
@@ -39,6 +40,9 @@ def reset_html(user):
reset_url=reset_url,
logo=logo,
logo_extension=logo_extension,
+ title=_("Password reset on {website_name}").format(
+ website_name=current_app.config.get("NAME", reset_url)
+ ),
)
diff --git a/canaille/templates/mail/firstlogin.html b/canaille/templates/mail/firstlogin.html
index 82c1116f..7f6d81d9 100644
--- a/canaille/templates/mail/firstlogin.html
+++ b/canaille/templates/mail/firstlogin.html
@@ -3,42 +3,41 @@
-
-
+
+ {{ title }}
-
-
-
+
-
- {% trans -%}
+
+
+
+
+ {% if logo %}
+
+ {% endif %}
+
+ {% trans %}Password initialization{% endtrans %}
+
+
+ |
+
+
+
+
+ {% trans %}
In order to finalize your account configuration at {{ site_name }}, we need to setup your password. Please click on the blue button below and follow the instructions.
- {%- endtrans %}
-
+ {% endtrans %}
+ |
+
-
-
+
+
+ {{ site_name }}
+ |
+
+ {% trans %}Initialize password{% endtrans %}
+ |
+
+
diff --git a/canaille/templates/mail/reset.html b/canaille/templates/mail/reset.html
index 0aaf3855..72d0d42e 100644
--- a/canaille/templates/mail/reset.html
+++ b/canaille/templates/mail/reset.html
@@ -3,42 +3,41 @@
-
-
+
+
{{ title }}
-
-
-
+
-
+
+
+
+
+ {% if logo %}
+
+ {% endif %}
+
+ {% trans %}Password reinitialisation{% endtrans %}
+
+
+ |
+
+
+
+
{% trans %}
Someone, probably you, asked for a password reinitialization link at {{ site_name }}. If you did not asked for this email, please ignore it. I you need to reset your password, please click on the blue button below and follow the instructions.
{% endtrans %}
-
+ |
+
-
-
+
+
+ {{ site_name }}
+ |
+
+ {% trans %}Reset password{% endtrans %}
+ |
+
+