{% extends "security/base.html" %} {% from "security/_macros.html" import render_field_with_errors, render_field, render_field_errors %} {% block content %} {% include "security/_messages.html" %}

{{ _("Setup Unified Sign In options") }}

{{ us_setup_form.hidden_tag() }} {% if setup_methods %} {% for subfield in us_setup_form.chosen_method %} {% if subfield.data in methods %} {{ render_field_with_errors(subfield) }} {% endif %} {% endfor %} {{ render_field_errors(us_setup_form.chosen_method) }} {% if "sms" in methods %} {{ render_field_with_errors(us_setup_form.phone) }} {% endif %} {% if chosen_method == "authenticator" %}

{{ _("Open your authenticator app on your device and scan the following qrcode to start receiving codes:") }}

{{ _(

{% endif %} {% if code_sent %}

{{ _("Code has been sent") }} {% endif %} {{ render_field(us_setup_form.submit) }} {% else %}

{{ _("No methods have been enabled - nothing to setup") }}

{% endif %}
{% if state %}
{{ us_setup_verify_form.hidden_tag() }} {{ render_field_with_errors(us_setup_verify_form.code) }} {{ render_field(us_setup_verify_form.submit) }}
{% endif %} {% endblock %}