{% extends 'user/form.html.twig' %} {% import "macros/widgets.html.twig" as widgets %} {% block form_body %}
{% if user.totpAuthenticationEnabled %} {{ 'activated'|trans }} {% elseif form is not null %}

{{ 'profile.2fa_intro'|trans }}

TOTP QR Code {{ secret }}

{{ form_start(form, {'attr': {'id': 'user_two_factor_form'}}) }}

{{ 'profile.2fa_confirmation'|trans }}

{{ form_widget(form) }} {{ form_end(form) }} {% else %} {{ 'deactivated'|trans }} {% endif %}
{% if user.totpAuthenticationEnabled or form is not null %} {% endif %} {% endblock %} {% block javascripts %} {{ parent() }} {% if form is not null %} {% endif %} {% endblock %}