#import "template.ftl" as layout>
<@layout.registrationLayout displayRequiredFields=false displayMessage=!messagesPerField.existsError('totp','userLabel'); section>
<#if section = "header">
${msg("loginTotpTitle")}
<#elseif section = "form">
-
${msg("loginTotpStep1")}
<#list totp.supportedApplications as app>
- ${msg(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>