<#import "template.ftl" as layout> <@layout.registrationLayout displayMessage=!messagesPerField.existsError('firstName','lastName','email','username','password','password-confirm'); section> <#if section = "header"> ${msg("registerTitle")} <#elseif section = "form">
<#if !realm.registrationEmailAsUsername>
<#if messagesPerField.existsError('username')> ${kcSanitize(messagesPerField.get('username'))?no_esc}
<#if messagesPerField.existsError('email')> ${kcSanitize(messagesPerField.get('email'))?no_esc}
<#if passwordRequired??>
<#if messagesPerField.existsError('password')> ${kcSanitize(messagesPerField.get('password'))?no_esc}
<#if messagesPerField.existsError('password-confirm')> ${kcSanitize(messagesPerField.get('password-confirm'))?no_esc}
<#if recaptchaRequired??>
${kcSanitize(msg("backToLogin"))?no_esc}