-1

Is this possible to force browser not to prompt to save the password? I don't want to let my user to save their password in the browser. Any idea from the experts?

Mads Hansen
  • 63,927
  • 12
  • 112
  • 147
maksbd19
  • 3,785
  • 28
  • 37
  • Please don't do this. Let the user choose to save their details if they want to. – Grim... Mar 31 '14 at 14:04
  • But i need to. I am developing an application that need to have close access functionality that can be accessed by only few people. If i let it then some user might save their credential and that is a big security leak. I really need a solution to this. And thanks for your comment @Grim... – maksbd19 Mar 31 '14 at 14:07
  • If that's the case, then you might want to find a different authentication method - any method you use (including mine below) can be gotten around very easily (I have a plugin that removes autocomplete values, for example). – Grim... Mar 31 '14 at 14:09

1 Answers1

0

You need to turn off autocomplete.

<input type="password" name="password" autocomplete="off" />

Grim...
  • 16,518
  • 7
  • 45
  • 61
  • This won't work with IE11 and soon Firefox (see: http://stackoverflow.com/questions/19229507/how-to-disable-autocomplete-for-a-html-password-field-in-ie11) – RHPT Oct 15 '14 at 00:28
  • Good. It's a horrible thing to do to a user, in my opinion. See also: not letting me paste things into form objects. – Grim... Oct 15 '14 at 11:41