{%- extends "logs/layout.html" %} {%- block content %}
{% if not result.accounts %}
{% else %}

{{_("Account Password Management")}}

{% endif %} {% if result.account or result.accounts %}
{{ csrf_field|safe }} {# FIXME: Make these user-configurable? #} {% if not result.account %} {% endif %}
{%- if result.error %}

{{ result.error }}

{%- elif result.account and result.op_completed %} {%- if result.stored_password %}

{{ _("The password is:") }} {{ result.stored_password }}

{%- else %}

{{ title }}

{%- endif %} {%- endif %}

{{ _("Unlocking an account allows Mailpile to use it to send and receive e-mail.") }}
{{ _("By default, unlocked accounts stay accessible until you restart Mailpile.") }}

{{ _("If Mailpile remembers the password, you will not have to unlock the account again.") }}

{{ _("Locked accounts can not be used to send or receive e-mail.") }}

{{ _("Please authenticate using your Mailpile password.") }}

{% if state.query_args.ui_redirect_back %} {% elif False and not result.account %} {% endif %}
{% else %}

{{_("No Saved Passwords Here!")}}

{{_("Hopefully that is a good thing...")}}

{{ result|json }}
{% endif %}
{%- endblock %}