Correct error validation password policy
This commit is contained in:
@ -913,6 +913,10 @@ function useGetErrors(params: { kcContext: Pick<KcContextLike, "messagesPerField
|
|||||||
return valueOrValues;
|
return valueOrValues;
|
||||||
})();
|
})();
|
||||||
|
|
||||||
|
if (usernameValue === "") {
|
||||||
|
break check_password_policy_x;
|
||||||
|
}
|
||||||
|
|
||||||
if (value !== usernameValue) {
|
if (value !== usernameValue) {
|
||||||
break check_password_policy_x;
|
break check_password_policy_x;
|
||||||
}
|
}
|
||||||
@ -950,6 +954,10 @@ function useGetErrors(params: { kcContext: Pick<KcContextLike, "messagesPerField
|
|||||||
{
|
{
|
||||||
const emailValue = emailFormFieldState.valueOrValues;
|
const emailValue = emailFormFieldState.valueOrValues;
|
||||||
|
|
||||||
|
if (emailValue === "") {
|
||||||
|
break check_password_policy_x;
|
||||||
|
}
|
||||||
|
|
||||||
if (value !== emailValue) {
|
if (value !== emailValue) {
|
||||||
break check_password_policy_x;
|
break check_password_policy_x;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user