#import "template.ftl" as layout>
<@layout.registrationLayout displayInfo=true displayRequiredFields=true; section>
<#if section = "header">
${msg("loginTotpTitle")}
<#elseif section = "form">
-
${msg("loginTotpStep1")}
<#list totp.policy.supportedApplications as app>
- ${app}
#list>
<#if mode?? && mode = "manual">
-
${msg("loginTotpManualStep2")}
${totp.totpSecretEncoded}
${msg("loginTotpScanBarcode")}
-
${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}
#if>
<#else>
-
${msg("loginTotpStep2")}
${msg("loginTotpUnableToScan")}
#if>
-
${msg("loginTotpStep3")}
${msg("loginTotpStep3DeviceName")}
#if>
@layout.registrationLayout>