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

[TextField]: Password validations #71

Closed
1 task done
ghost opened this issue Nov 22, 2023 · 1 comment · Fixed by #101
Closed
1 task done

[TextField]: Password validations #71

ghost opened this issue Nov 22, 2023 · 1 comment · Fixed by #101
Labels
enhancement New feature or request

Comments

@ghost
Copy link

ghost commented Nov 22, 2023

Is there an existing issue for this?

  • I have searched the existing issues

Package/Plugin version

9.1.1

What you'd like to happen

I would love to have some more validators for password validations.
- alphanumeric
- alphanumeric with symbols
- alphanumeric with symbols + 1 capital letter

If this becomes too redundant, we can also look at it from another perspective (what it should have)

FormBuilderValidators.shouldHaveAlphabets(atLeast: 1)
FormBuilderValidators.shouldHaveNumbers(atLeast: 1)
FormBuilderValidators.shouldHaveSymbols(atLeast: 1)

Note: I used "atLeast" instead of "min" for better understanding the use of that param.

Alternatives you've considered

I know we can have custom validations, but it becomes readable if we can dive into the form builder ecosystem thoroughly by just seeing existing list validators, instead of seeing list of custom validators.

Aditional information

No response

@ghost ghost added the enhancement New feature or request label Nov 22, 2023
@ghost
Copy link
Author

ghost commented Nov 22, 2023

I know there is a README section that tells us how to raise PR for this but I wanted to discuss which perspective or approach suits the author more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

0 participants