Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I prevent auto complete "Use password for:" option in chrome?

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.

like image 834
charitha amarasinghe Avatar asked Apr 22 '15 12:04

charitha amarasinghe


People also ask

How do I turn off Autocomplete on password field?

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" .

How do I stop Chrome from automatically requiring a 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.


1 Answers

Use autocomplete="new-password", as per the specs.

like image 177
Sebas Avatar answered Oct 09 '22 01:10

Sebas