ubccr / mokey

FreeIPA self-service account management portal
BSD 3-Clause "New" or "Revised" License
194 stars 46 forks source link

Error message on password reset when complexity is not given is not very helpful #30

Closed joerg closed 1 year ago

joerg commented 5 years ago

Hi,

If a user tries to reset the password and the complexity is not reached, then the error message shown is "Fatal system error", which is not very helpful. I think the corresponding line in the code is this one: https://github.com/ubccr/mokey/blob/80949f73dca060bdee4cd9786752efbf415aad03/server/cpw.go#L55 . I would be great to catch the "complexity not met" error and tell the user so instead of a generic error. I can attach a screenshot later on if you wish, but our corporate proxy is currently blocking uploads to Github.

regards, Jörg