1 <%= if Phoenix.Flash.get(@flash, :info) do %>
2 <p class="alert alert-info" role="alert"><%= Phoenix.Flash.get(@flash, :info) %></p>
4 <%= if Phoenix.Flash.get(@flash, :error) do %>
5 <p class="alert alert-danger" role="alert"><%= Phoenix.Flash.get(@flash, :error) %></p>
8 <h2><%= Gettext.dpgettext("static_pages", "mfa recover page title", "Two-factor recovery") %></h2>
10 <%= form_for @conn, Routes.mfa_verify_path(@conn, :verify), [as: "mfa"], fn f -> %>
12 <%= label f, :code, Gettext.dpgettext("static_pages", "mfa recover recovery code prompt", "Recovery code") %>
13 <%= text_input f, :code, [autocomplete: false, autocorrect: "off", autocapitalize: "off", autofocus: true, spellcheck: false] %>
14 <%= hidden_input f, :mfa_token, value: @mfa_token %>
15 <%= hidden_input f, :state, value: @state %>
16 <%= hidden_input f, :redirect_uri, value: @redirect_uri %>
17 <%= hidden_input f, :challenge_type, value: "recovery" %>
20 <%= submit Gettext.dpgettext("static_pages", "mfa recover verify recovery code button", "Verify") %>
22 <a href="<%= Routes.mfa_path(@conn, :show, %{challenge_type: "totp", mfa_token: @mfa_token, state: @state, redirect_uri: @redirect_uri}) %>">
23 <%= Gettext.dpgettext("static_pages", "mfa recover use 2fa code link", "Enter a two-factor code") %>