Skip to content

Wrong autocomplete value in password field on signIn route and "save-password" not triggered #5547

Open
@simon1389

Description

@simon1389

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 the autocomplete value of the password field is set to new-password instead of current-password what would be the right one here i guess. As i understood new-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:

image

What's the expected behaviour?

autocomplete value should be current-password and the save-password-mechanism of the browser should be triggered correctly

Help 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

"aws-amplify": "^6.3.4",
"@aws-amplify/ui-angular": "^5.0.18"

Metadata

Metadata

Assignees

No one assigned

    Labels

    AuthenticatorAn issue or a feature-request for an Authenticator UI ComponentbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions