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

前端 未结 2 1971
谎友^
谎友^ 2021-02-20 04:37

How can I write my HTML login form to be guaranteed to work with LastPass, or at least make it as likely as possible to work? Some sites require the \"Save All Entered Data\" to

相关标签:
2条回答
  • 2021-02-20 05:17

    I think most password manager try to get a clue for what a input field is meant for by examining the name attribute and the css class/id. I try to give my inputs names which a used by humans like username, password, city something like this. For the most password manager this has worked. Also Chrome's manager seems to understand it.

    0 讨论(0)
  • 2021-02-20 05:18

    Finally found official support statement. Excerpt:

    <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 closely related question is also really helpful for general advice across all password managers.

    0 讨论(0)
提交回复
热议问题