<% if current_user.two_factor_auth_enabled? %>

<%= t("users.registrations.edit.2fa_modal.disable.title") %>

<%= form_with(url: main_app.users_2fa_disable_path, method: "post", class: "2fa-disable-form", html: { data: { remote: true } }) do %>

<%= t("users.registrations.edit.2fa_modal.disable.description") %>

<%= label_tag :password, t("users.registrations.edit.2fa_modal.disable.password_label") %>
<%= password_field_tag :password, '', class: "sci-input-field" %>
<%= button_tag t("users.registrations.edit.2fa_modal.disable.disable_2fa"), type: 'submit', class: "btn btn-danger" %>
<% end %> <% else %> <%= render partial: 'users/registrations/2fa_wizard' %> <% end %>