<#import "template.ftl" as layout> <@layout.registrationLayout displayRequiredFields=false displayMessage=!messagesPerField.existsError('totp','userLabel'); section> <#if section = "header"> ${msg("loginTotpTitle")} <#elseif section = "form">
  1. ${msg("loginTotpStep1")}

  2. <#if mode?? && mode = "manual">
  3. ${msg("loginTotpManualStep2")}

    ${totp.totpSecretEncoded}

    ${msg("loginTotpScanBarcode")}

  4. ${msg("loginTotpManualStep3")}

  5. <#else>
  6. ${msg("loginTotpStep2")}

    Figure: Barcode

    ${msg("loginTotpUnableToScan")}

  7. ${msg("loginTotpStep3")}

    ${msg("loginTotpStep3DeviceName")}

*
<#if messagesPerField.existsError('totp')> ${kcSanitize(messagesPerField.get('totp'))?no_esc}
<#if mode??>
<#if totp.otpCredentials?size gte 1>*
<#if messagesPerField.existsError('userLabel')> ${kcSanitize(messagesPerField.get('userLabel'))?no_esc}
<#if isAppInitiatedAction??> <#else>