mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-27 07:02:26 +00:00
Use get_full_name to generate confirm_email.html
This commit is contained in:
parent
c71c41fea8
commit
263d5cfb4c
2 changed files with 2 additions and 2 deletions
|
@ -33,7 +33,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
<form class="form" method="post">
|
<form class="form" method="post">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
<h4>{% blocktrans %}Confirmation email{% endblocktrans %}</h4>
|
<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 %}
|
{% trans "Confirm" as tr_confirm %}
|
||||||
{% bootstrap_button tr_confirm button_type="submit" icon="ok" button_class="btn-success" %}
|
{% bootstrap_button tr_confirm button_type="submit" icon="ok" button_class="btn-success" %}
|
||||||
</form>
|
</form>
|
||||||
|
|
|
@ -1045,7 +1045,7 @@ def process_email(request, req):
|
||||||
return redirect(reverse("index"))
|
return redirect(reverse("index"))
|
||||||
|
|
||||||
return form(
|
return form(
|
||||||
{"email": user.email, "firstname": user.name, "lastname": user.surname},
|
{"email": user.email, "name": user.get_full_name()},
|
||||||
"users/confirm_email.html",
|
"users/confirm_email.html",
|
||||||
request
|
request
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue