Second factor

Code
<%= form_tag otp_challenge_path, :method => :post, :class => "otp_form" do %> <%= text_field_tag :code, nil, :autofocus => true, :autocomplete => "one-time-code", :inputmode => "numeric" %> <%= submit_tag "Log in" %> <% end %> Enter the six-digit code from your authenticator app.