<%= @title %>
<%= form_for @user, :url => twofa_auth_url, :method => :post do |f| %>
<% if @user.has_2fa? %>
<%= t('.turnoff') %>
<% else %>
<%= t('.turnon') %>
<% end %>
<%= f.label :password, t('.currentpassword'), :class => "required" %>
<%= f.password_field :password, :size => 40, :autocomplete => "off" %>
<% if @user.has_2fa? %>
<%= submit_tag t('.disable2fa') %>
<% else %>
<%= submit_tag t('.continue') %>
<% end %>
<% end %>