How browser's identify login forms?

后端 未结 2 2383
予麋鹿
予麋鹿 2021-02-14 15:46

I\'m trying to find out: how browsers identify login forms in different sites?

Doesn\'t matter if I\'m acessing my GMail account or some personal project, IE/Firefox alw

相关标签:
2条回答
  • 2021-02-14 16:48

    They look for input type=password.

    0 讨论(0)
  • 2021-02-14 16:50

    No only do they look for type=password they will also look for common input names for usernames and passwords.

    For example most browsers will detect the following field names as login information.

    <input name="login" type=text>
    <input name="user" type=text>
    <input name="username" type=text>
    <input name="passwd" type="password">
    <input name="pass" type="password">
    <input name="password" type="password">
    
    0 讨论(0)
提交回复
热议问题