VeeValidate multiple password constraints

Refresh

6 days ago

Views

2 time

0

I'm wondering if it's possible to have multiple password requirements passed to VeeValidate in order to display which requirements a user is missing.

For instance, if we require that a user's password should have at least one uppercase letter and at least one number and be at least 5 characters long, and the user types in "a1bb", we'd like to be able to display two error messages; one associated with the length requirement not being met and one related to the uppercase requirement not being met.

Ultimately, we'd like to be able to do something like this: enter image description here

Would that be possible with VeeValidate? Or are there any examples of a similar approach?

0 answers