<%= form_for @conn.params, Routes.auth_path(@conn, :verify_2fa_recovery_code), [ class: "w-full max-w-lg mx-auto bg-white dark:bg-gray-800 shadow-md rounded px-8 py-6 mb-4 mt-8", onsubmit: "document.getElementById('use-code-button').disabled = true" ], fn f -> %>

Enter Recovery Code

Can't access your authenticator application? Enter a recovery code instead.
<%= text_input(f, :recovery_code, value: "", autocomplete: "off", class: "font-medium shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full px-2 border-gray-300 dark:border-gray-500 dark:text-gray-200 dark:bg-gray-900 rounded-md", maxlength: "10", oninvalid: "document.getElementById('use-code-button').disabled = false", placeholder: "Enter recovery code", required: "required" ) %>
<.button id="use-code-button" type="submit" class="w-full mt-2 [&>span.label-enabled]:block [&>span.label-disabled]:hidden [&[disabled]>span.label-enabled]:hidden [&[disabled]>span.label-disabled]:block" > Use Code Verifying...

Authenticator application working again? Enter verification code <%= if full_build?() do %>
Lost your recovery codes? Contact us <% end %>

<% end %>