aws-amplify / amplify-ui

Amplify UI is a collection of accessible, themeable, performant React (and more!) components that can connect directly to the cloud.
https://ui.docs.amplify.aws
Apache License 2.0
905 stars 286 forks source link

[FR] Don't use regular expressions in user facing errors #4420

Open mikelhamer opened 1 year ago

mikelhamer commented 1 year ago

On which framework/platform would you like to see this feature implemented?

Angular

Which UI component is this feature-request for?

Authenticator

Please describe your feature-request in detail.

When a user is changing their password and it doesn't meet the password requirements, I see an error like this

image

I barely understand this as a developer, and to a user it is complete gibberish and not helpful at all.

Please describe a solution you'd like.

It would be better if it showed what those password requirements actually were, or even if it just said something generic like "Password does not meet complexity requirements" or something it would be more helpful than that.

Please remove the use of regular expressions in all user facing error messages.

We love contributors! Is this something you'd be interested in working on?

jacoblogan commented 2 months ago

thanks for creating this issue. We'll take this into consideration for our roadmap.