{% extends "base.html" %} {% from "components/ui.html" import breadcrumb, csrf_field with context %} {% from "components/connection.html" import connection_fields %} {% block title %}Connect an account ยท {{ APP_NAME }}{% endblock %} {% block heading %}Connect an account{% endblock %} {% block subheading %}{{ breadcrumb([("Accounts", "/ui/accounts"), ("Connect an account", None)]) }}{% endblock %} {% block content %} {# Connect with a password: ``settings`` fill the server fields, a ``provider`` names the candidate's, ``suffix`` keeps ids apart, ``error`` shows under the password why the last try was refused. #} {% macro connect_form(email, settings, suffix="", provider=None, password_label="Password", hint=None, folded=True, primary=True, display_name="", error=None) %} {% set ids = "-" ~ suffix if suffix else "" %}
{% endmacro %} {% macro sign_in_form(provider, hint="") %} {% endmacro %}Asks public sources how the address's provider is reached. No password leaves this service.
{{ hint.text }}{% if hint.url %} More{% endif %}
{% endfor %} {{ connect_form(discovery.email, candidate.settings, suffix=loop.index, provider=candidate.provider.value, password_label="App password" if candidate.credential.value == "app_password" else "Password", hint="Tried against the provider first, then stored encrypted. Never shown again.") }}No way to connect {{ discovery.email }} over IMAP was found. Enter your provider's servers.
{% endif %} {{ connect_form(discovery.email, {}, suffix="hand", folded=False, primary=not usable and not sign_ins) }}| {{ report.source.value }} | {{ report.outcome.value }} | {{ report.message | or_missing }} |