Reputation: 2193
I need to allow users to change their password and as such I have 2 fields on a form:
To keep the operation private for the user, the obvious choice to use is input type="password" field - which is what I am trying to do.
However, browser password managers keep offering to auto-fill the fields, an activity which simply makes no sense in this context.
In fact, in my opinion, the practice is actively insecure, because it increases the likelihood that people will choose passwords "similar" to what they currently have, by accepting what is offered by the password manager and making minor adjustments. (just a quick note that there's no need to mention that safeguards to ensure difference can be put in place as I'm aware of this - thanks)
I have already done a lot of research to try to disable the password managers, including:
But, while some approaches work partially, nothing works consistently.
The only thing that I can find to do that seems to have shot at succeeding is using a type="text" and displaying circles by using a dummy "password" font.
However, this approach feels like I am fighting the browsers, and I just cannot credit that there is no easy way to enter "hidden" text without having the password manager involved.
Additional notes:
Hence this question. Is there possibly any password guru out there who knows how to disable the password managers when entering hidden text? Thanks!
Upvotes: 6
Views: 4419
Reputation: 1038
For a new password field set autocomplete="new-password"
then the password manager will use this field when the user uses the generate option to create a new password or is changing the password.
https://developers.google.com/web/updates/2015/06/checkout-faster-with-autofill
Upvotes: 1