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

Fix password manager auto complete #5165

Merged
merged 2 commits into from
Aug 7, 2024
Merged

Fix password manager auto complete #5165

merged 2 commits into from
Aug 7, 2024

Conversation

tvandort
Copy link
Contributor

@tvandort tvandort commented Aug 7, 2024

Description Of Changes

I added the autocomplete attribute to the password input field on the login for so that password managers got the correct hint for whether to show a "new password" form fill or an "existing password" form fill.

https://developer.1password.com/docs/web/compatible-website-design/#password-change-and-reset-forms
https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete

Before:
image

After:
image

Code Changes

  • Added autocomplete to password input on login page.
  • Passed autocomplete field to CustomTextInput component.

Steps to Confirm

  • Add a new user and check that the new password field comes up on 1Password.

Pre-Merge Checklist

  • All CI Pipelines Succeeded
  • Documentation:
    • documentation complete, PR opened in fidesdocs
    • documentation issue created in fidesdocs
    • if there are any new client scopes created as part of the pull request, remember to update public-facing documentation that references our scope registry
  • Issue Requirements are Met
  • Relevant Follow-Up Issues Created
  • Update CHANGELOG.md
  • For API changes, the Postman collection has been updated
  • If there are any database migrations:
    • Ensure that your downrev is up to date with the latest revision on main
    • Ensure that your downgrade() migration is correct and works
      • If a downgrade migration is not possible for this change, please call this out in the PR description!

Password managers like 1Password were not showing the "create new password" field when users set their password for the first time.
1Password recommends the following.
https://developer.1password.com/docs/web/compatible-website-design/#password-change-and-reset-forms

More about the autocomplete field here:
https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete
Copy link

vercel bot commented Aug 7, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
fides-plus-nightly ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 7, 2024 9:57pm

Copy link

cypress bot commented Aug 7, 2024



Test summary

4 0 0 0


Run details

Project fides
Status Passed
Commit 9581fa7 ℹ️
Started Aug 7, 2024 10:09 PM
Ended Aug 7, 2024 10:09 PM
Duration 00:35 💡
OS Linux Ubuntu -
Browser Electron 106

View run in Cypress Cloud ➡️


This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Cloud

Copy link
Contributor

@gilluminate gilluminate left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good. Great enhancement!

@tvandort tvandort merged commit c539ecd into main Aug 7, 2024
13 checks passed
@tvandort tvandort deleted the add-autocomplete-hints branch August 7, 2024 23:32
Copy link

cypress bot commented Aug 7, 2024



Test summary

4 0 0 0


Run details

Project fides
Status Passed
Commit c539ecd
Started Aug 7, 2024 11:44 PM
Ended Aug 7, 2024 11:45 PM
Duration 00:36 💡
OS Linux Ubuntu -
Browser Electron 106

View run in Cypress Cloud ➡️


This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Cloud

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants