bornhack-website/bornhack/templates/account/password_reset_from_key.html

32 lines
801 B
HTML

{% extends "base.html" %}
{% load account %}
{% load bootstrap3 %}
{% block content %}
<div class="row">
<div class="col-md-6 col-md-offset-3">
<h1>{% if token_fail %}Invalidt link{% else %}Reset password{% endif %}</h1>
{% if token_fail %}
<p>
The given token is invalid.
</p>
<p>
<a href="{% url 'account_reset_password' %}" class="btn btn-primary">Request new reset</a>
</p>
{% else %}
{% if form %}
<form class="login" method="POST">
{% csrf_token %}
{% bootstrap_form form %}
<button class="form-control btn btn-black" type="submit">Reset password</button>
</form>
{% else %}
<p>Your password has been reset</p>
{% endif %}
{% endif %}
</div>
</div>
{% endblock %}