Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I activate the Google Chrome password generator for my password input field?

I have noticed on some websites google is asking me if i want to use a password generated by Chrome.

It doesnt happen with my own input field.

How can i make this work?

EXAMPLE

like image 797
Karl Peterson Avatar asked Dec 19 '25 06:12

Karl Peterson


1 Answers

Based on chromium; this should work : (the suggest password comes after already known passwords for that site)

<form id="login" action="signup.php" method="post">
  <input type="text" autocomplete="username">
  <input type="password" autocomplete="new-password">
  <input type="password" autocomplete="new-password">
  <input type="submit" value="Sign Up!">
</form>

more examples : https://www.chromium.org/developers/design-documents/form-styles-that-chromium-understands

like image 86
SvennD Avatar answered Dec 21 '25 01:12

SvennD