[{include file="headitem.tpl" title="GENERAL_ADMIN_TITLE"|oxmultilangassign}] [{oxstyle include="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"}] [{oxscript include="https://code.jquery.com/jquery-3.2.1.slim.min.js"}] [{oxscript include="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"}] [{oxscript include="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"}] [{oxstyle include="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/solid.min.css"}] [{oxstyle}] [{assign var="totp" value=$edit->d3GetTotp()}] [{assign var="userid" value=$edit->getId()}] [{$totp->loadByUserId($userid)}] [{if $readonly}] [{assign var="readonly" value="readonly disabled"}] [{else}] [{assign var="readonly" value=""}] [{/if}] [{if $force2FA}]

[{oxmultilang ident="D3_TOTP_FORCE2FATITLE"}]

[{oxmultilang ident="D3_TOTP_FORCE2FASUB"}]
[{/if}]
[{$oViewConf->getHiddenSid()}]
[{$oViewConf->getHiddenSid()}] [{if $sSaveError}]
[{oxmultilang ident=$sSaveError}]
[{/if}] [{if $oxid && $oxid != '-1'}]
[{block name="user_d3user_totp_form1"}] [{if false == $totp->getId()}]
[{oxmultilang ident="D3_TOTP_REGISTERNEW"}]
[{oxmultilang ident="D3_TOTP_QRCODE" suffix="COLON"}]
[{$totp->getQrCodeElement()}] [{oxinputhelp ident="D3_TOTP_QRCODE_HELP"}]
[{elseif $force2FA}]
[{oxmultilang ident="D3_TOTP_ADMINBACKEND"}]
[{else}]
[{oxmultilang ident="D3_TOTP_REGISTEREXIST"}]
[{oxmultilang ident="D3_TOTP_REGISTERDELETE_DESC"}]


[{/if}] [{/block}]
[{block name="user_d3user_totp_form2"}] [{if false == $totp->getId()}]
[{oxmultilang ident="D3_TOTP_CONFIRMATION"}]
[{oxinputhelp ident="D3_TOTP_SECRET_HELP"}]
[{oxinputhelp ident="D3_TOTP_CURROTP_HELP"}]
[{else}]
[{oxmultilang ident="D3_TOTP_BACKUPCODES"}]
[{if $oView->getBackupCodes()}]
[{else}]
[{oxmultilang ident="D3_TOTP_AVAILBACKUPCODECOUNT" args=$oView->getAvailableBackupCodeCount()}]

[{oxmultilang ident="D3_TOTP_AVAILBACKUPCODECOUNT_DESC"}]
[{/if}]
[{/if}] [{/block}]
[{/if}]
[{if !$force2FA}] [{include file="bottomnaviitem.tpl"}] [{include file="bottomitem.tpl"}] [{/if}]