From 2d3650dd5941a6efd478db95e8a0c56adb1fc12f Mon Sep 17 00:00:00 2001 From: Gustavo Lazaro Amendola <38653102+gustavokitman@users.noreply.github.com> Date: Tue, 23 Jul 2019 13:29:54 +0100 Subject: [PATCH] Autofocus MFA code text field This is a small change which will make users life so much easier. --- app/views/devise/two_factor_authentication/show.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/devise/two_factor_authentication/show.html.erb b/app/views/devise/two_factor_authentication/show.html.erb index 0ffa224..9a3ae06 100644 --- a/app/views/devise/two_factor_authentication/show.html.erb +++ b/app/views/devise/two_factor_authentication/show.html.erb @@ -7,7 +7,7 @@

<%= flash[:notice] %>

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