<%= t(".enabled") %>
<%= form_tag otp_enrollment_path, :method => :delete, :class => "otp_form" do %> <%= password_field_tag :current_password, nil, :placeholder => t(".current_password"), :autocomplete => "current-password" %> <%= text_field_tag :code, nil, :autocomplete => "one-time-code", :inputmode => "numeric", :maxlength => 6, :pattern => "[0-9]{6}", :class => "otp_code" %> <%= t(".reset_hint") %> <%= button_tag :type => "submit", :class => "action_button" do %> <%= icon("shield-off", library: "tabler", "aria-hidden": true) %> <%= t(".disable_second_factor") %> <% end %> <% end %> <% else %><%= t(".not_enrolled") %>
<%= form_tag otp_enrollment_path, :method => :post, :class => "otp_form" do %> <%= password_field_tag :current_password, nil, :placeholder => t(".current_password"), :autocomplete => "current-password"%> <%= button_tag :type => "submit", :class => "action_button" do %> <%= icon("shield-lock", library: "tabler", "aria-hidden": true) %> <%= t(".enable_second_factor") %> <% end %> <% end %> <% end %>