7 ms·
That's literally what my router's login page does. It is a text box but has JavaScript which converts each non-* character into a * character and stores the act
by UnoriginalGuy 10y ago
That's literally what my router's login page does. It is a text box but has JavaScript which converts each non-* character into a * character and stores the actual value in a JS variable.
Why? They added a "Show Password" radio and I guess they figured this hack made more sense than simply using JS to update the DOM to turn it from a type password to a type text.
- JoshTriplett 10y agoMy previous router did this to obscure password length, by inserting three stars into the field for every character typed. Which completely broke browser password managers, and the ability to paste the password.
- deleted 10y ago[deleted]
- duskwuff 10y agoIIRC, changing the 'type' of an input doesn't (or, at least, didn't) work in some browsers.