{% extends "base.html" %}
{% load djblets_deco %}
{% load i18n %}

{% block title %}{% trans "Recover Password" %}{% endblock %}

{% block content %}
{% box "passwordreset" %}
 <form method="post" action=".">
  <h1 class="title">{% trans "Recover Password" %}</h1>
  <div class="main">
   <p>{% blocktrans %}Forgotten your password? Enter your e-mail address, and
   we'll send you instructions for creating a new one.{% endblocktrans %}</p>
   <table>
    <tr>
     <td class="label"><label for="id_email">{% trans "E-mail address" %}</label></td>
     <td class="field"><input type="text" name="email" id="id_email" /></td>
     <td class="field"><input type="submit" value="{% trans "Recover" %}" /></td>
    </tr>
   </table>
  </div>
 </form>
{% endbox %}
{% endblock %}

{% extends "base.html" %}
{% load djblets_deco %}
{% load i18n %}

{% block title %}{% trans "Recover Password" %}{% endblock %}

{% block content %}
{% box "passwordreset" %}
 <form method="post" action=".">
  {% csrf_token %}
  <h1 class="title">{% trans "Recover Password" %}</h1>
  <div class="main">
   <p>{% blocktrans %}Forgotten your password? Enter your e-mail address, and
   we'll send you instructions for creating a new one.{% endblocktrans %}</p>
   <table>
    <tr>
     <td class="label"><label for="id_email">{% trans "E-mail address" %}</label></td>
     <td class="field"><input type="text" name="email" id="id_email" /></td>
     <td class="field"><input type="submit" value="{% trans "Recover" %}" /></td>
    </tr>
   </table>
  </div>
 </form>
{% endbox %}
{% endblock %}

Fix a CSRF problem with password recovery.
Fix a CSRF problem with password recovery.

Passowrd recovery was broken due to a CSRF (Cross Site Request Forgery)
configuration problem. The CSRF token wasn't provided in the recovery form.
We now use the {% csrf_token %} template tag to add it.

Fixes bug #1723
