initial commit
This commit is contained in:
commit
6f5167c24f
45 changed files with 763 additions and 0 deletions
22
templates/account/password_reset_from_key.html
Normal file
22
templates/account/password_reset_from_key.html
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
{% 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%}
|
||||
Loading…
Add table
Add a link
Reference in a new issue