Changeset View
Changeset View
Standalone View
Standalone View
src/templates/account/password_reset_from_key.html
- This file was added.
{% extends '_base.html' %} | |||||
{% load crispy_forms_tags %} | |||||
{% block title %}Change Password{% endblock title %} | |||||
{% block content %} | |||||
<h1>{% if token_fail %}Bad Token{% else %}Change Password{% endif %}</h1> | |||||
{% if token_fail %} | |||||
<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> | |||||
{% else %} | |||||
{% if form %} | |||||
<form method="POST" action="."> | |||||
{% csrf_token %} | |||||
{{ form|crispy }} | |||||
<button class="btn btn-primary" type="submit">Change Password</button> | |||||
</form> | |||||
{% else %} | |||||
<p>Your password is now changed.</p> | |||||
{% endif %} | |||||
{% endif %} | |||||
{% endblock content%} |
Content licensed under Creative Commons Attribution-ShareAlike 3.0 (CC-BY-SA) unless otherwise noted; code licensed under GNU General Public License (GPL) or other open source licenses. By using this site, you agree to the Terms of Use, Privacy Policy, and Code of Conduct. · Wikimedia Foundation · Privacy Policy · Code of Conduct · Terms of Use · Disclaimer · CC-BY-SA · GPL