{% extends 'base.html' %} {% block body %}
elabftw

{{ 'Two Factor Authentication'|trans }}

{% if App.Session.get('rememberme') == '1' %} {% endif %} {{ App.Session.get('csrf')|csrf }} {% if App.Session.has('enable_mfa') %} {# SETUP MFA #}

{{ 'Enable two factor authentication for your account to increase its security. %sSee documentation%s.'|trans|format("", "")|raw }}

{% if App.Session.has('enforce_mfa') %} {{ 'It is mandatory to activate 2FA.'|trans }}
{% endif %} {{ 'Open your authenticator application and scan the QR code'|trans }}

mfa-qrcode
{% else %} {# MFA LOGIN #}
{{ 'Open your authenticator application'|trans }}
{% endif %}

{{ 'Enter the 6 digits displayed on your phone'|trans }}

{# IMPORTANT: set cancel button after submit button so Enter key submits the form #} {% if App.Session.has('enable_mfa') %} {% endif %}
{% endblock body %}