<#import "template.ftl" as layout> <#import "user-profile-commons.ftl" as userProfileCommons> <@layout.registrationLayout displayMessage=messagesPerField.exists('global') displayRequiredFields=true; section> <#if section = "header"> ${msg("registerTitle")} <#elseif section = "form">
<@userProfileCommons.userProfileFormFields; callback, attribute> <#if callback = "afterField"> <#-- render password fields just under the username or email (if used as username) --> <#if passwordRequired?? && (attribute.name == 'username' || (attribute.name == 'email' && realm.registrationEmailAsUsername))>
*
<#if messagesPerField.existsError('password')> ${kcSanitize(messagesPerField.get('password'))?no_esc}
*
<#if messagesPerField.existsError('password-confirm')> ${kcSanitize(messagesPerField.get('password-confirm'))?no_esc}
<#if recaptchaRequired??>