lorthirk/kapua

Wrong Error Message When Min Password Length too Short

Closed this issue · 1 comments

If user enters too large min password length, Kapua reports an error, which is OK, but the error message is wrong (it should be something similar to: "Value too small, it should be at least 12.")

Testflow:

  1. Login as kapua-sys
  2. Go to Accounts, create an account (e.g. acco0)
  3. Select acc0, go to Account settings, change password.min.lenght to 1 (less than 12)
  4. Try to submit changes - observe the error.

Expected behavior
Error message should be changed - see above.

Screenshots
Screenshot 2020-10-28 at 08 18 31

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

Additional context
Add any other context about the problem here.

I have verified that this issue has been resolved.