Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Chrome auto-inputs email into username login field

So after users register (username, email, password), the login form usually puts the email in the username in the login form. So about many users that register, complain their login info won't work and it usually because their email auto-filled into the username field.

like image 443
User Avatar asked Nov 15 '25 22:11

User


1 Answers

Make sure that the name and autocomplete attributes of the field match the name attribute of the username field that was used during registration.

autocomplete="username"

See https://developers.google.com/web/fundamentals/design-and-ui/input/forms/#use_metadata_to_enable_auto-complete for more info

like image 128
Maarten van Tjonger Avatar answered Nov 18 '25 12:11

Maarten van Tjonger



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!