{%- extends "layouts/auth.html" %} {%- block title %}{{_("Grant Access")}}{% endblock %} {%- block content %} {%- if result.oauth_url %}
{{ csrf_field|safe }}

{{_("Grant Access")}}

{{ _("In order for Mailpile to process your e-mail, you need to grant permission for the application to access your e-mail account.") }}

{{ _("The authorization process will take place in a new window (or tab).") }} {%- if not result.have_redirect %} {{ _("You will need to copy and paste an access code into the form below.") }}
Code:
{%- endif %}
{{ _("If given a choice, be sure to grant access to:") }} {{ result.username }}



{%- else %}
{% if render_mode != 'minimal' %}
{% endif %}

{% if result.success %}

{{ _("Success") }}!


{{ _("Mailpile should now be able to access your account.") }}

{% else %}

{{ _("Failed") }}.


{{ _("Oh no, something went wrong.") }} {{ _("Try again later?") }}

{% endif %}

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