Skip to content Skip to sidebar Skip to footer

Html/css/js: How To Force Browser To Save Password From A Non-'password' Type Input?

The thing is that I have two values which are similar to a username and password, but are actually 2 randomly generated GUID's that users use to login to a website I made - they ar

Solution 1:

What if you save a cookie on the client side, maybe with the text encrypted and when the user comes back to the site you first look if he has a cookie saved? Of course, it's a workaround and the cookie won't be there forever, but it's an option.

I'm also thinking you might make a CSS-hidden password input and copy the content to that before submiting the form, but I'm not sure that that tricks the browser.

Solution 2:

Solution 3:

I would think a cookie would be the easiest solution... At least until you can find something better... +1 for Claudiu's answer

Post a Comment for "Html/css/js: How To Force Browser To Save Password From A Non-'password' Type Input?"