diff options
| author | 2023-07-07 17:44:26 +0200 | |
|---|---|---|
| committer | 2023-07-07 17:44:46 +0200 | |
| commit | 4c3bdf627e409afb10b6e825e7209ec2b4b2900a (patch) | |
| tree | 0b2e4cdc4d94470b00bb4dbb6db05f1458106e77 /src | |
| parent | Add note about where the keycloak sources can be located (diff) | |
Do not validate the password client side https://github.com/keycloakify/keycloakify/issues/377
Diffstat (limited to 'src')
| -rw-r--r-- | src/keycloak-theme/login/pages/shared/UserProfileFormFields.tsx | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/keycloak-theme/login/pages/shared/UserProfileFormFields.tsx b/src/keycloak-theme/login/pages/shared/UserProfileFormFields.tsx index 2d76b2f..a95d47b 100644 --- a/src/keycloak-theme/login/pages/shared/UserProfileFormFields.tsx +++ b/src/keycloak-theme/login/pages/shared/UserProfileFormFields.tsx @@ -25,17 +25,7 @@ export function UserProfileFormFields(props: UserProfileFormFieldsProps) { attributesWithPassword } = useFormValidation({ kcContext, - i18n, - // Unfortunately, the password policies that you might have defined on the server - // are not made available by Keycloak on the client side. See: https://keycloak.discourse.group/t/make-password-policies-available-to-freemarker/11632 - // Therefore, we have to hardcode the password policies here if we want real-time validation. - // Don't worry, the server will still validate the password when the form is submitted. - "passwordValidators": { - "length": { - "ignore.empty.value": true, - "min": "4" - } - } + i18n }); useEffect(() => { |