Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

when redirect using next js link in local this #958

Closed
mah12345o opened this issue Dec 4, 2024 · 1 comment
Closed

when redirect using next js link in local this #958

mah12345o opened this issue Dec 4, 2024 · 1 comment
Assignees
Labels
question Further information is requested

Comments

@mah12345o
Copy link

v.pipe(
v.string("invalid password"),
v.nonEmpty("Please enter password."),
v.minLength(
8,
"Your password is too short. Please use at least 8 characters."
),
v.maxLength(
50,
"Your password is too long. Please limit it to a maximum of 50 characters."
),
v.regex(/[\d]/, "Your password must contain a number."),
v.regex(/[a-z]/, "Your password must contain a lowercase letter."),
v.regex(/[A-Z]/, "Your password must contain a uppercase letter."),
v.regex(
/[@$!%*?&#]/,
"Your password must contain a special characters (@, $, !, %, *, ?, &, #)."
)
)
),


v.forward(
v.partialCheck(
[AddCityAdminApiFields?.PASSWORD],
(input) =>
!isAdminUpdateCityAdmin
? !!input?.AddCityAdminApiFields?.PASSWORD
: true,
"Please enter password"
),
AddCityAdminApiFields?.PASSWORD
)

when redirect using next js link in local this
==>
!isAdminUpdateCityAdmin
? !!input?.AddCityAdminApiFields?.PASSWORD
: true,
"Please enter password"

triggerd and optional paswword field error show ,and after refresh this error not show , after refresh this var isAdminUpdateCityAdmin have value .

@fabian-hiller
Copy link
Owner

I can't follow you. Can you try to explain more clearly what problem you encountered?

@fabian-hiller fabian-hiller self-assigned this Dec 4, 2024
@fabian-hiller fabian-hiller added the question Further information is requested label Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants