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: Don't display password managers on irrelevant input fields #5004

Merged
merged 3 commits into from
Jan 16, 2025

Conversation

rolodato
Copy link
Member

Thanks for submitting a PR! Please check the boxes below:

  • I have added information to docs/ if required so people know about the feature!
  • I have filled in the "Changes" section below?
  • I have filled in the "How did you test this code" section below?
  • I have used a Conventional Commit title for this Pull Request

Changes

All Input components by default have one-time-code autocomplete. This causes password managers such as 1Password to display a prompt on all kinds of inputs where it makes no sense and is annoying:

image

image

This change removes this default.

The only place where one-time-code should be used is in the MFA code input, which is added by this change:

image

Note that at MFA autocomplete still works (at least in 1Password) without setting autocomplete=one-time-code.

Lastly, this change also sets explicit autocomplete values for changing passwords. These also still work in 1Password currently, but is good practice to have them.

How did you test this code?

Manually tested different input fields in the frontend.

Copy link

vercel bot commented Jan 15, 2025

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

Name Status Preview Comments Updated (UTC)
flagsmith-frontend-preview ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 15, 2025 4:33pm
flagsmith-frontend-staging ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 15, 2025 4:33pm
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
docs ⬜️ Ignored (Inspect) Jan 15, 2025 4:33pm

Copy link
Contributor

github-actions bot commented Jan 15, 2025

Docker builds report

Image Build Status Security report
ghcr.io/flagsmith/flagsmith-api-test:pr-5004 Finished ✅ Skipped
ghcr.io/flagsmith/flagsmith-e2e:pr-5004 Finished ✅ Skipped
ghcr.io/flagsmith/flagsmith-api:pr-5004 Finished ✅ Results
ghcr.io/flagsmith/flagsmith:pr-5004 Finished ✅ Results
ghcr.io/flagsmith/flagsmith-private-cloud:pr-5004 Finished ✅ Results
ghcr.io/flagsmith/flagsmith-frontend:pr-5004 Finished ✅ Results

Copy link
Contributor

github-actions bot commented Jan 15, 2025

Uffizzi Preview deployment-59954 was deleted.

@tiagoapolo
Copy link
Contributor

tiagoapolo commented Jan 16, 2025

This is great!

@rolodato rolodato merged commit c04eb95 into main Jan 16, 2025
31 checks passed
@rolodato rolodato deleted the fix/autocomplete-inputs branch January 16, 2025 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix front-end Issue related to the React Front End Dashboard
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants