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