8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-12-01 04:34:36 +00:00

Fix confirm email template

This commit is contained in:
Jean-Romain Garnier 2020-04-17 10:28:04 +00:00 committed by Supelec Rezo Rennes
parent c41c723b0c
commit dbefd3a0d7
2 changed files with 2 additions and 2 deletions

View file

@ -33,7 +33,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
<form class="form" method="post">
{% csrf_token %}
<h4>{% blocktrans %}Confirmation email{% endblocktrans %}</h4>
<p>{% blocktrans %}Confirm the email{% endblocktrans %} <a href="mailto:{{ email }}">{{ email }}</a> {% blocktrans %}for user {{ firstname }} {{ lastname }}.{% endblocktrans %}.</p>
<p>{% blocktrans %}Confirm the email{% endblocktrans %} <a href="mailto:{{ email }}">{{ email }}</a> {% blocktrans %}for user {{ firstname }} {{ lastname }}.{% endblocktrans %}</p>
{% trans "Confirm" as tr_confirm %}
{% bootstrap_button tr_confirm button_type="submit" icon="ok" button_class="btn-success" %}
</form>

View file

@ -1067,7 +1067,7 @@ def process_email(request, req):
return redirect(reverse("index"))
return form(
{"email": user.email, "firstname": user.firstname, "lastname": user.surname},
{"email": user.email, "firstname": user.name, "lastname": user.surname},
"users/confirm_email.html",
request
)