Permalink
Browse files

Actually show a success message when the email is sent

  • Loading branch information...
1 parent e808932 commit 2a3c27863207b11843a8566f027b0e699c1c1d62 @brutasse committed May 1, 2012
Showing with 9 additions and 5 deletions.
  1. +9 −5 password_reset/templates/password_reset/recovery_form.html
@@ -5,9 +5,13 @@
{% block title %}{% trans "Password recovery" %}{% endblock %}
{% block content %}
- <form method="post" action="{% url "password_reset_recover" %}">
- {% csrf_token %}
- {{ form.as_p }}
- <p><input type="submit" value="{% trans "Recover my password" %}"></p>
- </form>
+ {% if form %}
+ <form method="post" action="{% if url %}{{ url }}{% else %}{% url "password_reset_recover" %}{% endif %}">
+ {% csrf_token %}
+ {{ form.as_p }}
+ <p><input type="submit" value="{% trans "Recover my password" %}"></p>
+ </form>
+ {% else %}
+ <p>{% blocktrans %}An email has just been sent to <strong>{{ email }}</strong>. Use the link in it to set a new password.{% endblocktrans %}</p>
+ {% endif %}
{% endblock %}

0 comments on commit 2a3c278

Please sign in to comment.