Login forms: Disable browser prompt to remember the password

Posted Over 12 years ago. Visible to the public.

In order to prevent the browser from asking whether to remember the password, give a form an autocomplete attribute with the value off:

<form "/session" method="post" autocomplete="off">
  ...
</form>

Rails example

form_for @model, :html => { :autocomplete => "off" } do |form|
Henning Koch
Last edit
Over 11 years ago
Keywords
sign, in
License
Source code in this card is licensed under the MIT License.
Posted by Henning Koch to makandra dev (2011-11-07 18:35)