Add basic functionality for self-registration.
[cas.git] / src / accounts / templates / registration / password_reset_confirm.html
1 {% extends "base.html" %}
2 {% load i18n %}
3
4 {% block title %}{% trans 'Password reset' %}{% endblock %}
5
6 {% block content_enclosed %}
7
8 {% if validlink %}
9
10 <h1>{% trans 'Enter new password' %}</h1>
11
12 <p>{% trans "Please enter your new password twice so we can verify you typed it in correctly." %}</p>
13
14 <form action="" method="post">{% csrf_token %}
15 {{ form.new_password1.errors }}
16 <p class="aligned wide"><label for="id_new_password1">{% trans 'New password:' %}</label>{{ form.new_password1 }}</p>
17 {{ form.new_password2.errors }}
18 <p class="aligned wide"><label for="id_new_password2">{% trans 'Confirm password:' %}</label>{{ form.new_password2 }}</p>
19 <p><input type="submit" value="{% trans 'Change my password' %}" /></p>
20 </form>
21
22 {% else %}
23
24 <h1>{% trans 'Password reset unsuccessful' %}</h1>
25
26 <p>{% trans "The password reset link was invalid, possibly because it has already been used.  Please request a new password reset." %}</p>
27
28 {% endif %}
29
30 {% endblock %}