opensearch-project / security-dashboards-plugin

🔐 Manage your internal users, roles, access control, and audit logs from OpenSearch Dashboards
https://opensearch.org/docs/latest/security-plugin/index/
Apache License 2.0
66 stars 148 forks source link

[FEATURE] Add a view button for password input text-box #1940

Closed DarshitChanpura closed 1 month ago

DarshitChanpura commented 2 months ago

We should add a View button to password input field. This would allow users to peek at their typed password. Something like: Screenshot 2024-05-08 at 12 11 17 PM

The view button can be implemented as 1 of the 2 following behaviors:

  1. Password is only visible when holding the view button down.
  2. View button acts as a toggle between displaying password in plain-text and masking it.
derek-ho commented 2 months ago

Looks like this can help: https://oui.opensearch.org/1.0/#/forms/form-controls#password-field

cwperks commented 1 month ago

[Triage] Thank you for the feature request @DarshitChanpura. Does OUI currently support a reveal button?

DarshitChanpura commented 1 month ago

Yes, however OUI comes with its own set of web-pack compilation failures. We'll probly have to address those along-with this fix, if we plan to use the OUI component.