<#import "template.ftl" as layout> <@layout.registrationLayout displayInfo=true displayRequiredFields=true; section>

<#if section = "header"> ${msg("loginTotpTitle")}

<#elseif section = "form">

1. ${msg("loginTotpStep1")}

   <#list totp.policy.supportedApplications as app>
   - ${app}
<#if mode?? && mode = "manual">

2. ${msg("loginTotpManualStep2")}

   ${totp.totpSecretEncoded}

   ${msg("loginTotpScanBarcode")}

3. ${msg("loginTotpManualStep3")}

   - ${msg("loginTotpType")}: ${msg("loginTotp." + totp.policy.type)}
   - ${msg("loginTotpAlgorithm")}: ${totp.policy.getAlgorithmKey()}
   - ${msg("loginTotpDigits")}: ${totp.policy.digits}
   <#if totp.policy.type = "totp">
   - ${msg("loginTotpInterval")}: ${totp.policy.period}
   <#elseif totp.policy.type = "hotp">
   - ${msg("loginTotpCounter")}: ${totp.policy.initialCounter}
<#else>

4. ${msg("loginTotpStep2")}

   ${msg("loginTotpUnableToScan")}

5. ${msg("loginTotpStep3")}

   ${msg("loginTotpStep3DeviceName")}

${msg("authenticatorCode")} *
<#if mode??>
${msg("loginTotpDeviceName")} <#if totp.otpCredentials?size gte 1>*
<#if isAppInitiatedAction??>
${msg("doCancel")} <#else>