password is a required field

Closes #33967

Signed-off-by: Patrick Kuijvenhoven <patrick.kuijvenhoven@gmail.com>
This commit is contained in:
Patrick Kuijvenhoven 2024-10-16 08:54:54 +02:00 committed by GitHub
parent a8a5c96510
commit 25405d15e0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -17,8 +17,8 @@
<#if callback = "afterField"> <#if callback = "afterField">
<#-- render password fields just under the username or email (if used as username) --> <#-- render password fields just under the username or email (if used as username) -->
<#if passwordRequired?? && (attribute.name == 'username' || (attribute.name == 'email' && realm.registrationEmailAsUsername))> <#if passwordRequired?? && (attribute.name == 'username' || (attribute.name == 'email' && realm.registrationEmailAsUsername))>
<@field.password name="password" label=msg("password") autocomplete="new-password" /> <@field.password name="password" required=true label=msg("password") autocomplete="new-password" />
<@field.password name="password-confirm" label=msg("passwordConfirm") autocomplete="new-password" /> <@field.password name="password-confirm" required=true label=msg("passwordConfirm") autocomplete="new-password" />
</#if> </#if>
</#if> </#if>
</@userProfileCommons.userProfileFormFields> </@userProfileCommons.userProfileFormFields>