I made a profile page where users can update their passwords:
<form action="..." method="post">
New password: <input type="password" autocomplete="new-password" name="password1" />
Repeat: <input type="password" autocomplete="new-password" name="password2" />
<input type="submit" value="OK" />
</form>
The issue is that when they validate the form, Chrome is not suggesting to update the password in its password manager.
I know that on some websites, when I change my password, Chrome automatically detects it and suggests to update it in the password manager.
How can I force Chrome to take into account this new password?
I tried playing around with the autocomplete
attribute, or adding a field requesting the old password, but nothing seems to work…
The only way to make Chrome show the password update pop-up is to redirect the user to a different URL after the password change.