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

CVV validation incorrect #21

Open
KianYang-Lee opened this issue Oct 25, 2023 · 0 comments
Open

CVV validation incorrect #21

KianYang-Lee opened this issue Oct 25, 2023 · 0 comments

Comments

@KianYang-Lee
Copy link

KianYang-Lee commented Oct 25, 2023

For the domain TacoOrder, as CVV needs to be 3 digits, the current validation presented does not check for the minimum digits required, rather only the maximum digits allowed.

Suggest to use the following regex pattern matching for constraint:

@Pattern(regexp = "^[0-9]{3}$", message = "Must be 3 digits")
private String ccCVV;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant