-
Notifications
You must be signed in to change notification settings - Fork 293
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
Wrong autocomplete value in password field on signIn route and "save-password" not triggered #5547
Comments
@simon1389 Thank you for reaching out with this issue. I am trying to reproduce the issue and in my basic implementation of the Authenticator component the behavior I am seeing is In the meantime while we work on the issue you could try to customize the form fields to manually set the sign in autocomplete field as described in the documentation https://ui.docs.amplify.aws/angular/connected-components/authenticator/customization#form-field-customization.
|
@jacoblogan
If i omit passing the formFields, then my password field also got the autocomplete="current-password". But i think this is not how it should behave, right? I mean... the default value should stay if i do not define it in my formFields |
@simon1389 thanks for providing your component definition. Yes the default value of |
Before creating a new issue, please confirm:
On which framework/platform are you having an issue?
Angular
Which UI component?
Authenticator
How is your app built?
Angular builder with vite
What browsers are you seeing the problem on?
Chrome, Firefox, Microsoft Edge
Which region are you seeing the problem in?
eu_central_1
Please describe your bug.
When using the
amplify-authenticator
component in my angular app, i see username and password field initially. But theautocomplete
value of the password field is set tonew-password
instead ofcurrent-password
what would be the right one here i guess. As i understoodnew-password
is for the signup process. As a consequence the "save-password" dialog is not correctly triggered for my users i guess and they cannot store their password in the password-manager as they were used to when my app used the hosted-cognito-ui before.Here a screenshot of the DOM showing that issue:
What's the expected behaviour?
autocomplete value should be
current-password
and the save-password-mechanism of the browser should be triggered correctlyHelp us reproduce the bug!
There was no special action to have that behavior. Just including the
amplify-authenticator
component in the angular app.Code Snippet
// Put your code below this line.
Console log output
No response
Additional information and screenshots
Versions used in the package.json are
The text was updated successfully, but these errors were encountered: