[FEAT] Password resets

This commit is contained in:
2023-01-19 23:28:55 +00:00
parent f0f03c1175
commit 19698270e5
5 changed files with 56 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
{% extends 'base.html' %}
{% load bootstrap4 %}
{% block content %}
{% if validlink %}
<h1>Choose a New Password</h1>
<form action="" method="post">
{% csrf_token %}
{% bootstrap_form form %}
{% buttons %}
<input type="hidden" name="next" value="{{ next }}">
<input type="submit" class="btn btn-info" value="Change password">
{% endbuttons %}
</form>
{% else %}
<p>That link isn't valid - has it already been used? You can request a new link <a href="{% url 'login' %}">here</a>.</p>
{% endif %}
{% endblock %}