]>
Commit | Line | Data |
---|---|---|
1 | {% extends "base_generic.html" %} | |
2 | ||
3 | {% block content %} | |
4 | ||
5 | {% if validlink %} | |
6 | <p>Please enter (and confirm) your new password.</p> | |
7 | <form action="" method="post"> | |
8 | <div style="display:none"> | |
9 | <input type="hidden" value="{{ csrf_token }}" name="csrfmiddlewaretoken"> | |
10 | </div> | |
11 | <table> | |
12 | <tr> | |
13 | <td>{{ form.new_password1.errors }} | |
14 | <label for="id_new_password1">New password:</label></td> | |
15 | <td>{{ form.new_password1 }}</td> | |
16 | </tr> | |
17 | <tr> | |
18 | <td>{{ form.new_password2.errors }} | |
19 | <label for="id_new_password2">Confirm password:</label></td> | |
20 | <td>{{ form.new_password2 }}</td> | |
21 | </tr> | |
22 | <tr> | |
23 | <td></td> | |
24 | <td><input type="submit" value="Change my password" /></td> | |
25 | </tr> | |
26 | </table> | |
27 | </form> | |
28 | {% else %} | |
29 | <h1>Password reset failed</h1> | |
30 | <p>The password reset link was invalid, possibly because it has already been used. Please request a new password reset.</p> | |
31 | {% endif %} | |
32 | ||
33 | {% endblock %} |