This is the example:
https://drive.google.com/file/d/0B4CwNQ_rOoDVUVZSY3h0QXVBaG8/view
<asp:TextBox ID="TextBoxPassword" runat="server" TextMode="Password" autocomplete="off"></asp:TextBox>
I want to prevent the password autocomplete in my system. It seems it is not working with autocomplete="off"
. I could prevent it using $('#<%= TextBoxPassword.ClientID %>').val("");
when the window is loading, but in Chrome there is a another option call Use password for:
and someone can get the password by using that. So how do I prevent it?
I don't mean the "yellow background" thing that belongs to chrome.
Preventing autofilling with autocomplete="new-password" If you are defining a user management page where a user can specify a new password for another person, and therefore you want to prevent autofilling of password fields, you can use autocomplete="new-password" .
Select the Chrome menu in the toolbar. Select Settings or Preferences. In the Autofill section, select Passwords. Turn off Offer to save passwords and Auto Sign-in.
Use autocomplete="new-password"
, as per the specs.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With