]> git.openstreetmap.org Git - rails.git/commitdiff
Re-enable autocomplete for passwords
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 29 May 2024 17:49:30 +0000 (18:49 +0100)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 29 May 2024 18:02:25 +0000 (19:02 +0100)
Regression for c4347c8d9a10bf5c141ad7d355594b93e20545f6

Thankfully browsers ignore this for login fields, but it shouldn't
be turned off anyway.

app/views/sessions/new.html.erb

index f180a29896d6bd0e8c9864e544dd93a00ea2a39b..c02b2d3762f264323b92b0c57980759926b8e70c 100644 (file)
@@ -45,7 +45,7 @@
         <small><%= link_to(t(".lost password link"), user_forgot_password_path) %></small>
       </div>
     </div>
-    <input class="form-control mb-3" type="password" name="password" id="password" tabindex="2" value="" autocomplete="off" />
+    <input class="form-control mb-3" type="password" name="password" id="password" tabindex="2" value="" autocomplete="on" />
 
     <%= f.form_group do %>
       <%= f.check_box :remember_me, { :label => t(".remember"), :tabindex => 3, :checked => (params[:remember_me] == "yes") }, "yes" %>