-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
luci: Make password reveal work with password managers #7479
base: master
Are you sure you want to change the base?
Conversation
This is a possible patch for #7478 |
Drop the merge commit. Rebase. Squash commits. |
e7de5e9
to
593d777
Compare
Make sure to rebase as other changes in master are conflicting. |
593d777
to
f294ee0
Compare
I had a look at the test build, but the log is so long I can't really find where to look for clues ("error"; "failure" and "failed" appear too much to use them to find the failure). Is there something I should try here? |
3339250
to
fff9b22
Compare
@systemcrash , sorry to hassle, but I'm not sure if there is something I should do next, could you please let me know? |
Password managers (like LastPass etc) tend to add additional elements into the DOM for their own context menus. If this happens between the hide/reveal button and the password input, then the logic to reveal the password breaks. This change updates the onclick handler to look backward in the DOM for the first sibling that is an input, and to then toggle the password/text type on that element. This change deliberately only updates the main ui.js file, not any application files. Signed-off-by: Andrew Dodd <[email protected]>
fff9b22
to
e11550b
Compare
I removed the change to the |
Password managers (like LastPass etc) tend to add additional elements into the DOM for their own context menus. If this happens between the hide/reveal button and the password input, then the logic to reveal the password breaks.
This change updates the onclick handler to look backward in the DOM for the first sibling that is an input, and to then toggle the password/text type on that element.
Signed-off-by: <[email protected]>
row (viagit commit --signoff
)<package name>: title
first line subject for packagesPKG_VERSION
in the Makefile