<% content_for :title, "2-step verification" %>
<% content_for :thin_form, true %>
<% content_for :suppress_navbar_items, true %>

<div class="page-title">
  <h1>2-step verification</h1>
</div>

<%= form_tag([resource_name, :two_factor_authentication], :method => :put) do %>
  <div class="panel panel-default">
    <div class="panel-body">
      <div class="form-group">
        <%= label_tag :code, 'Verification code' %>
        <p class="text-muted">Use the verification app on your phone to get your code.<br />You won’t need to do this again for 30 days.</p>
        <%= text_field_tag :code, nil,
          class: 'form-control input-md-4 input-lg',
          placeholder: 'Enter 6 digit code',
          tabindex: 1,
          autofocus: 'autofocus' %>
      </div>
    </div>
    <div class="panel-footer">
      <%= submit_tag "Sign in", tabindex: 2, class: 'btn btn-success btn-lg btn-block' %>
    </div>
  </div>
<% end %>

<% content_for :title, "2-step verification" %>
<% content_for :thin_form, true %>
<% content_for :suppress_navbar_items, true %>

<div class="page-title">
  <h1>2-step verification</h1>
</div>

<%= form_tag([resource_name, :two_factor_authentication], :method => :put) do %>
  <div class="panel panel-default">
    <div class="panel-body">
      <div class="form-group">
        <%= label_tag :code, 'Verification code' %>
        <p class="text-muted">Use the verification app on your phone to get your code.<br />You won’t need to do this again for 30 days.</p>
        <%= text_field_tag :code, nil,
          class: 'form-control input-md-4 input-lg',
          placeholder: 'Enter 6 digit code',
          tabindex: 1,
          autofocus: 'autofocus',
          autocomplete: 'off' %>
      </div>
    </div>
    <div class="panel-footer">
      <%= submit_tag "Sign in", tabindex: 2, class: 'btn btn-success btn-lg btn-block' %>
    </div>
  </div>
<% end %>

Disable autocomplete for 2SV code
Disable autocomplete for 2SV code
