{# The password reset template. Displays a password reset form. :param form: The password reset form. :type form: :class:`~canaille.core.endpoints.forms.PasswordResetForm` :param user: The user associated with the URL. :type user: :class:`~canaille.core.models.User` :param hash: The secret link hash. :type hash: :class:`str` #} {% extends theme('base.html') %} {% import 'macro/form.html' as fui %} {% block content %}
{% block header %}

{% if logo_url %} {% endif %}
{% trans %}Password reset{% endtrans %}

{% endblock %} {% if hash == None %}
{{ fui.render_form(form, _("Password reset"), action=url_for("core.account.reset", user=user)) }}
{% else %}
{{ fui.render_form(form, _("Password reset"), action=url_for("core.auth.reset", user=user, hash=hash)) }}
{% endif %}
{% endblock %}