{% capture append = "oxidBlock_content" %}

{{ translate({ ident: "D3_TOTP_ACCOUNT" }) }}

{% include "page/account/inc/account_menu.html.twig" with {active_link: "d3totp"} %}
{% set totp = user.d3GetSessionedTotp() %} {% set userid = user.getId() %} {{ totp.loadByUserId(userid) }}
{% block d3_account_totp %}

{{ translate({ ident: "D3_TOTP_STATUS" }) }}

{% if false == totp.getId() %}

{{ translate({ ident: "D3_TOTP_REGISTERNEW" }) }}

{{ translate({ ident: "D3_TOTP_QRCODE" }) }} 
{{ totp.getQrCodeElement()|raw }}

{{ translate({ ident: "D3_TOTP_QRCODE_HELP" }) }}


{{ translate({ ident: "D3_TOTP_SECRET_HELP" }) }}


{{ translate({ ident: "D3_TOTP_CURROTP_HELP" }) }}

{% endif %} {% if totp.getId() %} {% block d3_account_totp_deletenotes %}

{{ translate({ ident: "D3_TOTP_REGISTEREXIST" }) }}

{{ translate({ ident: "D3_TOTP_REGISTERDELETE_DESC" }) }}
{% endblock %} {% block d3_account_totp_backupcodes %}

{{ translate({ ident: "D3_TOTP_BACKUPCODES" }) }}

{% if oView.getBackupCodes() %} {% block d3_account_totp_backupcodes_list %} {% endblock %} {% else %} {% block d3_account_totp_backupcodes_info %} {{ translate({ ident: "D3_TOTP_AVAILBACKUPCODECOUNT", args: oView.getAvailableBackupCodeCount() }) }}
{{ translate({ ident: "D3_TOTP_AVAILBACKUPCODECOUNT_DESC" }) }} {% endblock %} {% endif %}
{% endblock %} {% endif %}
{% endblock %}
{% endcapture %} {% include "layout/page.html.twig" with {sidebar: "Left"} %}