How can I write my box login form to explicitly enable LastPass?

How can I write my login form in order to guarantee work with LastPass, or at least make it as possible as possible for work? Some sites require that "Save All Entered Data" work correctly with LastPass, but as a site developer, I'm looking for something better. What do I need to do to ensure that the default LastPass mode ("Save Site") works as flawlessly as possible? I can’t find the official documentation or really even good blog posts with suggestions, but this will certainly answer my question. What does ideal or at least empirically successful markup look like?

Extra credit for (1) evidence and / or (2) a strategy that works with multiple password managers.

+5
html passwords login forms lastpass
source share
2 answers

I think most password managers try to figure out what the input field is for by examining the name attribute and the css / id class . I am trying to give my inputs names that are used by people, such as username, password, city, something like this. For most password managers, this worked. Chrome manager seems to understand this.

+1
source share

Finally found support approval . Excerpts:

<form action="https://mypage.com/blah" method="post"> <input type="text" name="username" id="username" value=""/> <input type="password" name="password" id="password" value=""/> <input type="submit" value="LOGIN"/> </form> 

This close question is also very useful for general tips for all password managers.

+7
source share

All Articles