garronej 2023-07-07 17:24:53 +02:00
parent e541f275e7
commit 117aae9f33
3 changed files with 1705 additions and 1525 deletions

View file

@ -29,7 +29,7 @@
"evt": "^2.4.15", "evt": "^2.4.15",
"jwt-decode": "^3.1.2", "jwt-decode": "^3.1.2",
"keycloak-js": "^21.0.1", "keycloak-js": "^21.0.1",
"keycloakify": "^7.14.1", "keycloakify": "^7.14.3",
"powerhooks": "^0.26.8", "powerhooks": "^0.26.8",
"react": "18.1.0", "react": "18.1.0",
"react-dom": "18.1.0", "react-dom": "18.1.0",

View file

@ -25,7 +25,17 @@ export function UserProfileFormFields(props: UserProfileFormFieldsProps) {
attributesWithPassword attributesWithPassword
} = useFormValidation({ } = useFormValidation({
kcContext, kcContext,
i18n 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"
}
}
}); });
useEffect(() => { useEffect(() => {

3216
yarn.lock

File diff suppressed because it is too large Load diff