Skip to content

Commit 2229ead

Browse files
authored
Merge pull request #174 from gustavokitman/patch-1
Autofocus MFA code text field
2 parents 82e5aff + 2d3650d commit 2229ead

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/views/devise/two_factor_authentication/show.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<p><%= flash[:notice] %></p>
88

99
<%= form_tag([resource_name, :two_factor_authentication], :method => :put) do %>
10-
<%= text_field_tag :code %>
10+
<%= text_field_tag :code, '', autofocus: true %>
1111
<%= submit_tag "Submit" %>
1212
<% end %>
1313

0 commit comments

Comments
 (0)