Skip to content

Option to show passwords with a button - #5665

Open
damien-git wants to merge 4 commits into
vufind-org:devfrom
MSU-Libraries:show_passwords
Open

Option to show passwords with a button#5665
damien-git wants to merge 4 commits into
vufind-org:devfrom
MSU-Libraries:show_passwords

Conversation

@damien-git

@damien-git damien-git commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

This adds an option in config.ini - Site called buttonToShowPasswords, disabled by default. When enabled, all input fields of type password are automatically modified to display an eye button. This button can be used to show or hide the password. Initialization is also done when content is loaded in a lightbox.

For accessibility, there are title and aria-label attributes to the span, using a localized string (only provided here in English). The span is focusable and can be activated with the keyboard.

To prevent a conflict with Edge's built-in functionality, a check about it is done during javascript initialization. The custom button should not be displayed in this case.

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.

1 participant