Files
sure/app/views/mfa/verify.html.erb
Josh Pigford 842e37658c Multi-factor authentication (#1817)
* Initial pass

* Tests for MFA and locale cleanup

* Brakeman

* Update two-factor authentication status styling

* Update app/models/user.rb

Co-authored-by: Zach Gollwitzer <zach@maybe.co>
Signed-off-by: Josh Pigford <josh@joshpigford.com>

* Refactor MFA verification and session handling in tests

---------

Signed-off-by: Josh Pigford <josh@joshpigford.com>
Co-authored-by: Zach Gollwitzer <zach@maybe.co>
2025-02-06 14:16:53 -06:00

14 lines
350 B
Plaintext

<%
header_title t(".title")
header_description t(".description")
%>
<%= styled_form_with url: verify_mfa_path, method: :post, class: "space-y-4" do |form| %>
<%= form.text_field :code,
required: true,
autofocus: true,
autocomplete: "one-time-code",
label: t(".page_title") %>
<%= form.submit t(".verify_button") %>
<% end %>