Wrong Error if User Enters "." or "-" Symbols in min.password length Field
Opened this issue · 1 comments
If user enters "." or "-" symbols in the min.password length field, Kapua reports an error that number is too large or should not be negative, etc. But "-" and "." should not be enterable anyway.
Testflow:
- Login as kapua-sys
- Go to Accounts, create an account (e.g. acco0)
- Select acc0, go to Account settings, change password.min.lenght to -10 or 10.1 or 10-1
- Observe the error
Expected behavior
"." and "-" symbols should not be enetarble in the field.
Version of Kapua
https://github.com/lorthirk/kapua/tree/feature-configurablePasswordLength
Type of deployment
[ ] Local Vagrant deployment
[x] Docker
[ ] Openshift (in its variants)
[ ] Others
Main component affected
[x] Console (in case of console please report info on which browser you encountered the problem)
[ ] REST API -> did not try rest api!!! -> please check!
[ ] Message Broker
[ ] - Others
At this time, given the effort required to fix this, I think a fix is not worth it.