Skip to content

Commit 16b3d6d

Browse files
MikeRogers0tegon
authored andcommitted
Adding autocomplete="email" to email fields (#4643)
As discussed in #4635
1 parent 7b30817 commit 16b3d6d

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

app/views/devise/confirmations/new.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<div class="field">
77
<%= f.label :email %><br />
8-
<%= f.email_field :email, autofocus: true, value: (resource.pending_reconfirmation? ? resource.unconfirmed_email : resource.email) %>
8+
<%= f.email_field :email, autofocus: true, autocomplete: "email", value: (resource.pending_reconfirmation? ? resource.unconfirmed_email : resource.email) %>
99
</div>
1010

1111
<div class="actions">

app/views/devise/passwords/new.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<div class="field">
77
<%= f.label :email %><br />
8-
<%= f.email_field :email, autofocus: true %>
8+
<%= f.email_field :email, autofocus: true, autocomplete: "email" %>
99
</div>
1010

1111
<div class="actions">

app/views/devise/registrations/edit.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<div class="field">
77
<%= f.label :email %><br />
8-
<%= f.email_field :email, autofocus: true %>
8+
<%= f.email_field :email, autofocus: true, autocomplete: "email" %>
99
</div>
1010

1111
<% if devise_mapping.confirmable? && resource.pending_reconfirmation? %>

app/views/devise/registrations/new.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<div class="field">
77
<%= f.label :email %><br />
8-
<%= f.email_field :email, autofocus: true %>
8+
<%= f.email_field :email, autofocus: true, autocomplete: "email" %>
99
</div>
1010

1111
<div class="field">

app/views/devise/sessions/new.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<%= form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| %>
44
<div class="field">
55
<%= f.label :email %><br />
6-
<%= f.email_field :email, autofocus: true %>
6+
<%= f.email_field :email, autofocus: true, autocomplete: "email" %>
77
</div>
88

99
<div class="field">

app/views/devise/unlocks/new.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<div class="field">
77
<%= f.label :email %><br />
8-
<%= f.email_field :email, autofocus: true %>
8+
<%= f.email_field :email, autofocus: true, autocomplete: "email" %>
99
</div>
1010

1111
<div class="actions">

0 commit comments

Comments
 (0)