{% capture append = "oxidBlock_content" %}

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

{% set totp = user.d3GetTotp() %} {% set userid = user.getId() %} {{ totp.loadByUserId(userid) }} {% block d3_account_totp %}

{% if false == totp.getId() %}
{{ translate({ ident: "D3_TOTP_REGISTERNEW" }) }}
{{ translate({ ident: "D3_TOTP_QRCODE" }) }} 
{{ totp.getQrCodeElement() }}

{{ 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 %} {% capture append = "oxidBlock_sidebar" %} {% include "page/account/inc/account_menu.html.twig" with {active_link: "d3totp"} %} {% endcapture %} {% include "layout/page.html.twig" with {sidebar: "Left"} %}