Skip to content
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

Submitting single characters in ChangePassword component fields shows unfriendly validation errors #5963

Open
4 tasks done
rob-rountree-cyted opened this issue Oct 25, 2024 · 3 comments
Labels
AccountSettings An issue or a feature-request for an AccountSettings UI Component feature-request Request a new feature React An issue or a feature-request for React platform

Comments

@rob-rountree-cyted
Copy link

rob-rountree-cyted commented Oct 25, 2024

Before creating a new issue, please confirm:

On which framework/platform are you having an issue?

React

Which UI component?

Account Settings

How is your app built?

Vite

What browsers are you seeing the problem on?

Chrome, Firefox

Which region are you seeing the problem in?

eu-west-2

Please describe your bug.

Using an unmodified <AccountSettings.ChangePassword /> component, type the letter 'a' into each field and submit the form. Unfriendly validation errors are shown.

What's the expected behaviour?

User-friendly validation errors, e.g. "Incorrect username or password." or "Password did not conform with policy: Password not long enough".

Help us reproduce the bug!

Using an unmodified <AccountSettings.ChangePassword /> component, type the letter 'a' into each field and submit the form.

image

Code Snippet

// Put your code below this line.

Console log output

No response

Additional information and screenshots

No response

@github-actions github-actions bot added pending-triage Issue is pending triage pending-maintainer-response Issue is pending response from an Amplify UI maintainer labels Oct 25, 2024
@rob-rountree-cyted rob-rountree-cyted changed the title Submitting single characters in ChangePassword component fields shows unfriendly validator error Submitting single characters in ChangePassword component fields shows unfriendly validation errors Oct 25, 2024
@reesscot reesscot added feature-request Request a new feature React An issue or a feature-request for React platform AccountSettings An issue or a feature-request for an AccountSettings UI Component and removed pending-triage Issue is pending triage pending-maintainer-response Issue is pending response from an Amplify UI maintainer labels Oct 25, 2024
@reesscot
Copy link
Contributor

Hi @rob-rountree-cyted, this is currently a limitation with the error messages returned by Amazon Cognito. I'm marking this as a feature request to improve the error messaging in the Account Settings component.

Related: #4420

@github-actions github-actions bot added the pending-maintainer-response Issue is pending response from an Amplify UI maintainer label Nov 8, 2024
@hbuchel hbuchel removed the pending-maintainer-response Issue is pending response from an Amplify UI maintainer label Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AccountSettings An issue or a feature-request for an AccountSettings UI Component feature-request Request a new feature React An issue or a feature-request for React platform
Projects
None yet
Development

No branches or pull requests

4 participants
@hbuchel @reesscot @rob-rountree-cyted and others