| author | Production Moz <dev@sopinspace.com> |
| Mon, 05 Aug 2013 03:32:19 +0200 | |
| changeset 527 | 4176ce2c3289 |
| parent 439 | 8994d24e4b2f |
| child 550 | 05b5e51e8823 |
| permissions | -rw-r--r-- |
| 220 | 1 |
{% extends "site/layout/base_workspace.html" %} |
2 |
{% load com %} |
|
3 |
{% load i18n %} |
|
4 |
||
5 |
{% block title %} |
|
6 |
{% blocktrans %}Reset your password{% endblocktrans %} |
|
7 |
{% endblock %} |
|
8 |
||
9 |
{% block head %} |
|
10 |
{% endblock %} |
|
11 |
||
12 |
{% block content %} |
|
13 |
||
14 |
<h1>{% blocktrans %}Reset your password{% endblocktrans %}</h1> |
|
|
439
8994d24e4b2f
Reverts to changeset 435, and just add {% csrf_token %} to template forgot_pw.html, since CSRF protection seems to be only here (surely because of django.contrib.auth.views).
gibus
parents:
438
diff
changeset
|
15 |
<form id="profile" enctype="multipart/form-data" class="wizard-form" action="." method="post"> |
| 220 | 16 |
<table class="wide_form"> |
17 |
<tbody> |
|
18 |
{% include "site/macros/form_fields.html" %} |
|
19 |
<tr> |
|
20 |
<td style="vertical-align: top; width: 20%; text-align:right;"> |
|
21 |
</td> |
|
22 |
<td> |
|
23 |
<label></label> |
|
24 |
<input name="reset" type="submit" value="{% blocktrans %}Reset your password{% endblocktrans %}"/> |
|
25 |
</td> |
|
26 |
</tr> |
|
27 |
</tbody> |
|
28 |
</table> |
|
29 |
</form> |
|
|
436
83b032cbf471
Avoids HTTP 403 on reset password, seehttps://docs.djangoproject.com/en/dev/ref/contrib/csrf/#ref-contrib-csrf.
Production Moz <dev@sopinspace.com>
parents:
220
diff
changeset
|
30 |
{% endblock %} |