2

How to disable the password complete on HTML pages.

I'm creating a Password Change page, but when I'm using the browser already complete the password field with the old value.

How can I disable this feature?

Ps.: I have already tried using autocomplete="off" as a form property, but it doesn't work.

Cœur
  • 37,241
  • 25
  • 195
  • 267
Victor
  • 8,309
  • 14
  • 80
  • 129
  • 1
    Chrome actually ignores autocomplete="off" for password fields, so this isn't a duplicate. The other question doesn't talk about password fields in particular. https://groups.google.com/a/chromium.org/forum/#!topic/chromium-dev/zhhj7hCip5c – kristianp Jan 27 '15 at 04:59
  • you can read about it [here](https://developer.mozilla.org/En/How_to_Turn_Off_Form_Autocompletion) and [here](http://msdn.microsoft.com/en-us/library/ms533032%28VS.85%29.aspx) – kleinohad Jul 17 '11 at 13:56

1 Answers1

0

The only thing that worked for me was placing a second password field somewhere before the actual one. The browser fill out the first and leave the second actual field empty.

It's of course not required and hidden by CSS and because I'm not processing it at all there won't be any problems.

I think it really should be supported to disable any auto completion on password fields where necessary, like password change like in your example.

I just came on this after implementing a user deletion option, which in my opinion is nuts when the required password field is prefilled. Same with password change option of course.

Can Rau
  • 3,130
  • 1
  • 23
  • 33