8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-12-23 07:23:46 +00:00

Use get_full_name to generate confirm_email.html

This commit is contained in:
Jean-Romain Garnier 2020-04-17 15:22:53 +02:00 committed by Jean-Romain Garnier
parent d01fe8c163
commit 4fc24fcf47
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 {{ firstname }} {{ lastname }}.{% endblocktrans %}</p>
<p>{% blocktrans %}Confirm the email{% endblocktrans %} <a href="mailto:{{ email }}">{{ email }}</a> {% blocktrans %}for {{ name }}.{% endblocktrans %}</p>
{% trans "Confirm" as tr_confirm %}
{% bootstrap_button tr_confirm button_type="submit" icon="ok" button_class="btn-success" %}
</form>

View file

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