{# SPDX-FileCopyrightText: 2015-2018 CERN. SPDX-License-Identifier: MIT #} {%- extends config.ACCOUNTS_COVER_TEMPLATE %} {% from "invenio_accounts/_macros.html" import render_field, form_errors %} {%- set messages = get_flashed_messages(with_categories=true) -%} {% block panel %} {%- with form = reset_password_form %}

{{_('Reset Password')}}

{%- if messages %} {%- for category, message in messages %}

{{ message }}

{%- endfor %} {%- else %}
{{ form.hidden_tag() }} {{ render_field(reset_password_form.password, icon="glyphicon glyphicon-user", autofocus=True) }} {{ render_field(reset_password_form.password_confirm, icon="glyphicon glyphicon-user", autofocus=True) }}
{%- endif %}
{# contents of this if-block can be always shown after mattupstate/flask-security#291 is released. #} {%- if current_user.is_anonymous %} {%- endif %}
{%- endwith %} {% endblock panel %}