templates: change wording for password change (fixes #22225)

This commit is contained in:
Benjamin Dauvergne 2018-07-11 15:29:10 +02:00
parent ab267ddac5
commit b6e41da2be
1 changed files with 4 additions and 0 deletions

View File

@ -13,9 +13,13 @@
{% block content %}
<form method="post" action=".">
{% if user.has_usable_password %}
<p>{% blocktrans %}To change your password you must provide your current password, then provide
the new password and confirm it.
{% endblocktrans %}</p>
{% else %}
<p>{% blocktrans %}You are going to define your account password.{% endblocktrans %}</p>
{% endif %}
{% csrf_token %}
{{ form.as_p }}
<button class="submit-button">{% trans 'Submit' %}</button>