password_reset_from_key.html 730 B

1234567891011121314151617181920212223
  1. {% extends '_base.html' %}
  2. {% load crispy_forms_tags %}
  3. {% block title %}Change Password{% endblock title %}
  4. {% block content %}
  5. <h1>{% if token_fail %}Bad Token{% else %}Change Password{% endif %}</h1>
  6. {% if token_fail %}
  7. <p>The password reset link was invalid. Perhaps it has already been used? Please request a <a href="{% url 'account_reset_password' %}">new password reset</a>.</p>
  8. {% else %}
  9. {% if form %}
  10. <form method="POST" action=".">
  11. {% csrf_token %}
  12. {{ form|crispy }}
  13. <button class="btn btn-primary" type="submit">Change Password</button>
  14. </form>
  15. {% else %}
  16. <p>Your password is now changed.</p>
  17. {% endif %}
  18. {% endif %}
  19. {% endblock content%}