[{capture append="oxidBlock_content"}]

[{oxmultilang ident="D3_TOTP_ACCOUNT"}]

[{assign var="totp" value=$user->d3GetTotp()}] [{assign var="userid" value=$user->getId()}] [{$totp->loadByUserId($userid)}] [{block name="d3_account_totp"}]

getId()}] checked[{/if}] [{if false == $totp->getId()}]onclick="$('.registerNew').toggle(); $('.submitBtn').toggle();"[{/if}]>

[{if false == $totp->getId()}]
[{oxmultilang ident="D3_TOTP_REGISTERNEW"}]
[{oxmultilang ident="D3_TOTP_QRCODE"}] 
[{$totp->getQrCodeElement()}]

[{oxmultilang ident="D3_TOTP_QRCODE_HELP"}]


[{oxmultilang ident="D3_TOTP_SECRET_HELP"}]


[{oxmultilang ident="D3_TOTP_CURROTP_HELP"}]

[{/if}] [{if $totp->getId()}] [{block name="d3_account_totp_deletenotes"}]
[{oxmultilang ident="D3_TOTP_REGISTEREXIST"}]
[{oxmultilang ident="D3_TOTP_REGISTERDELETE_DESC"}]
[{/block}] [{block name="d3_account_totp_backupcodes"}]
[{oxmultilang ident="D3_TOTP_BACKUPCODES"}]
[{if $oView->getBackupCodes()}] [{block name="d3_account_totp_backupcodes_list"}] [{/block}] [{else}] [{block name="d3_account_totp_backupcodes_info"}] [{oxmultilang ident="D3_TOTP_AVAILBACKUPCODECOUNT" args=$oView->getAvailableBackupCodeCount()}]
[{oxmultilang ident="D3_TOTP_AVAILBACKUPCODECOUNT_DESC"}] [{/block}] [{/if}]
[{/block}] [{/if}]

[{/block}] [{/capture}] [{capture append="oxidBlock_sidebar"}] [{include file="page/account/inc/account_menu.tpl" active_link="d3totp"}] [{/capture}] [{include file="layout/page.tpl" sidebar="Left"}]