password_reset_from_key.html 942 B

1234567891011121314151617181920212223
  1. {% extends "account/base.html" %}
  2. {% load i18n %}
  3. {% block head_title %}{% trans "Change Password" %}{% endblock %}
  4. {% block content %}
  5. <h1>{% if token_fail %}{% trans "Bad Token" %}{% else %}{% trans "Change Password" %}{% endif %}</h1>
  6. {% if token_fail %}
  7. {% url 'account_reset_password' as passwd_reset_url %}
  8. <p>{% blocktrans %}The password reset link was invalid, possibly because it has already been used. Please request a <a href="{{ passwd_reset_url }}">new password reset</a>.{% endblocktrans %}</p>
  9. {% else %}
  10. {% if form %}
  11. <form method="POST" action="{{ action_url }}">
  12. {% csrf_token %}
  13. {{ form.as_p }}
  14. <input type="submit" name="action" value="{% trans 'change password' %}"/>
  15. </form>
  16. {% else %}
  17. <p>{% trans 'Your password is now changed.' %}</p>
  18. {% endif %}
  19. {% endif %}
  20. {% endblock %}