From 25405d15e0b3eca4c585288376f09a16e340e476 Mon Sep 17 00:00:00 2001 From: Patrick Kuijvenhoven Date: Wed, 16 Oct 2024 08:54:54 +0200 Subject: [PATCH] password is a required field Closes #33967 Signed-off-by: Patrick Kuijvenhoven --- .../src/main/resources/theme/keycloak.v2/login/register.ftl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/themes/src/main/resources/theme/keycloak.v2/login/register.ftl b/themes/src/main/resources/theme/keycloak.v2/login/register.ftl index 0e06d693aa..feef70748d 100755 --- a/themes/src/main/resources/theme/keycloak.v2/login/register.ftl +++ b/themes/src/main/resources/theme/keycloak.v2/login/register.ftl @@ -17,8 +17,8 @@ <#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))> - <@field.password name="password" label=msg("password") autocomplete="new-password" /> - <@field.password name="password-confirm" label=msg("passwordConfirm") autocomplete="new-password" /> + <@field.password name="password" required=true label=msg("password") autocomplete="new-password" /> + <@field.password name="password-confirm" required=true label=msg("passwordConfirm") autocomplete="new-password" />