How does the browser determine login forms?

I'm trying to figure out: how do browsers determine login forms for different sites?

It doesnโ€™t matter if Iโ€™m learning my GMail account or some personal project, IE / Firefox always knows that this page contains login information.

Do they show that just looking for input types = password or is there any cookie information?

Thanks in advance.

Philip

+3
source share
2 answers

Not only will they look for type = password, they will also look for common names for usernames and passwords.

For example, most browsers will define 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">
+5
source

= .

+6

Source: https://habr.com/ru/post/1726830/


All Articles