-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
<amplify-authenticator> password weakness warning is unclear #2416
Comments
@holtc - I think configurable error messages are a good idea. However, I think this shouldn't be done in a one-off fashion. We should implement a generic way of configuring ANY of the error messages. |
Confirming that we see this too. The errors are pretty inconsistent and confusing. Here are some examples of what we see with cognito's default recommended constraints:
Attempting
Attempting
Attempting
Attempting
|
It would be nice to display the password policies on the signUp page, and check them as the user is typing the password. |
FYI, we have started an RFC discussion for a proposed Amplify UI Component refactor to increase customizability and flexibility for our components. Please feel free to add any additional comments to the following issue: |
If the password is less than 6 chars it throws a InvalidParameterException. Recap - 2 different error codes and three different error messages for password that is too short. I think they should match. |
For anyone following this, apologies for the delayed follow up from our team. This issue was tied to a now deprecated package and shouldn't be a problem with the new Authenticator component. I'll close this issue, but if there's similar problems experienced with the new Authenticator then please open an issue within the |
Is your feature request related to a problem? Please describe.
When a user is creating an account and enters a password that is too short, an unclear error message is shown in certain cases. Say the minimum length you have set in Cognito is 8 characters. If a users tries to create an account with fewer than 6 characters, the error message shown is something like:
However, if the password entered by the user is 6 or more characters, but shorter than the minimum length set in Cognito, something like the following error message shows up:
Describe the solution you'd like
This is misleading, it would be great to have something similar to the first error message for all cases where the password is not long enough. I checked, and this is not available in the response sent by Cognito, so perhaps it could be added as a field in the
signUpConfig
.Describe alternatives you've considered
The only alternative I can think of is to build my own UI component.
Additional context
The prebuilt component is awesome, so I'd love to keep using it!
The text was updated successfully, but these errors were encountered: