#import "template.ftl" as layout>
<@layout.mainLayout active='totp' bodyClass='totp'; section>
${msg("authenticatorTitle")}
<#if totp.otpCredentials?size == 0>
* ${msg("requiredFields")}
#if>
<#if totp.enabled>
<#if totp.otpCredentials?size gt 1>
${msg("configureAuthenticators")} |
<#else>
${msg("configureAuthenticators")} |
#if>
<#list totp.otpCredentials as credential>
${msg("mobile")} |
<#if totp.otpCredentials?size gt 1>
${credential.id} |
#if>
${credential.userLabel!} |
|
#list>
<#else>
-
${msg("totpStep1")}
<#list totp.supportedApplications as app>
- ${msg(app)}
#list>
<#if mode?? && mode = "manual">
-
${msg("totpManualStep2")}
${totp.totpSecretEncoded}
${msg("totpScanBarcode")}
-
${msg("totpManualStep3")}
- ${msg("totpType")}: ${msg("totp." + totp.policy.type)}
- ${msg("totpAlgorithm")}: ${totp.policy.getAlgorithmKey()}
- ${msg("totpDigits")}: ${totp.policy.digits}
<#if totp.policy.type = "totp">
- ${msg("totpInterval")}: ${totp.policy.period}
<#elseif totp.policy.type = "hotp">
- ${msg("totpCounter")}: ${totp.policy.initialCounter}
#if>
<#else>
-
${msg("totpStep2")}
${msg("totpUnableToScan")}
#if>
-
${msg("totpStep3")}
${msg("totpStep3DeviceName")}
#if>
@layout.mainLayout>