{# -*- coding: utf-8 -*- This file is part of Invenio. Copyright (C) 2015-2020 CERN. Invenio is free software; you can redistribute it and/or modify it under the terms of the MIT License; see LICENSE file for more details. #} {%- extends config.ACCOUNTS_COVER_TEMPLATE %} {% from "invenio_accounts/_macros.html" import render_field, form_errors %} {%- set messages = get_flashed_messages(with_categories=true) -%} {% block page_body %}
{%- block form_header %}

{{_('Reset Password')}}

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

{{ message }}

{%- endfor %} {%- else %} {%- with form = reset_password_form %}
{{ form.hidden_tag() }} {{ render_field(reset_password_form.password, icon="lock icon", autofocus=True) }} {{ render_field(reset_password_form.password_confirm, icon="lock icon", autofocus=True) }}
{%- endwith %} {%- endif %}
{%- if current_user.is_anonymous %}

{{_('Log In')}}{% if security.registerable %} {{_('or')}} {{_('Sign Up')}}{% endif %}

{%- endif %}
{% endblock page_body %}