{% endif %}
{% block header %}
{% if not g.session %}
{% if logo_url %}
{% else %}
{% endif %}
{% else %}
{% endif %}
{% endblock %}
{% block messages %}
{{ flask.messages() }}
{% endblock %}
{% endif %}
{{ _("Sign in as %(username)s", username=g.auth.user_name) }}
{% trans %}Set up multi-factor authentication.{% endtrans %}
{% else %}
{% trans %}Set up multi-factor authentication.{% endtrans %}
{% trans %}1 - Automatic configuration{% endtrans %}
{% trans %} If the authenticator application is installed on the device that you are currently using, you can configure it by clicking on this button: {% endtrans %}{% trans %}2 - QR Code scanning{% endtrans %}
{% trans %} If the previous button did not work or if your authenticator application is installed on another device, please open it and use it to scan the following qrcode: {% endtrans %}{% trans %}3 - Secret token{% endtrans %}
{% trans %} If your device cannot scan images, you can configure your authenticator application by manually copying this secret token: {% endtrans %}
{% call fui.render_form(form, hx_boost="false") %}
{% block fields %}
{{ login_field.render_field(form.otp, class="autofocus") }}
{% endblock %}
{% block buttons %}
{% if not g.session %}
{% if not g.session %}
{% endblock %}
{% endcall %}
{% endif %}