<% content_for :title, t(".set_up_two_factor") %>

<%= t(".set_up_an_authenticator_app") %>

<%= t(".after_your_password_or_an") %>

  1. <%= t(".in_the_app_add_an") %>
    <%= image_tag @qr_data_uri, alt: t(".qr_code_for_your_authenticator"), class: "h-48 w-48" %>

    <%= t(".can_t_scan_it_enter_html", scan: (@secret.scan(/.{4}/).join(" "))) %>

  2. <%= t(".enter_the_code_the_app") %> <%= form_with url: two_factor_path, class: "mt-2 flex flex-wrap items-end gap-2" do |f| %> <%= hidden_field_tag :return_to, params[:return_to] %> <%= f.text_field :code, required: true, autocomplete: "one-time-code", inputmode: "numeric", maxlength: 7, class: "input w-32 text-lg tracking-widest", "aria-label": t(".code") %> <%= f.submit t(".turn_on"), class: "btn-primary" %> <% end %>

<%= link_to t(".not_now"), back_path, class: "link" %>