core: fix error 500 with expired reset password links

This commit is contained in:
2019-09-10 16:56:58 +02:00
parent eb975f4de1
commit 5a3f90fd28
2 changed files with 90 additions and 76 deletions

View File

@ -1,10 +1,14 @@
{% extends "core/base.jinja" %}
{% block content %}
{% if form %}
<form method="post" action="">
{% csrf_token %}
{{ form.as_p() }}
<input type="submit" value="{% trans %}Reset{% endtrans %}" />
</form>
{% else %}
{% trans %}It seems that this link has expired. To generate a new link, you can follow this link: {% endtrans %}<a href="{{ url('core:password_change') }}">{% trans %}lost password{% endtrans %}</a>.
{% endif %}
{% endblock %}