{% extends 'user/form.html.twig' %} {% import "macros/widgets.html.twig" as widgets %} {% block form_body %}

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

TOTP QR Code {{ secret }}

{% if not user.totpAuthenticationEnabled %} {{ form_start(form, {'attr': {'id': 'user_two_factor_form'}}) }}

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

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