ubicloud/views/auth/recovery_auth.erb
Jeremy Evans c1b0a1e982 Remove role="form" attribute on form tags
It is redundant. role="form" should be set on non-form tags that
operate as forms, and if a form tag is used that doesn't operate as a
form, you could potentially use a different role, but the assumption
is that a form tag has a form role, so there is no benefit to being
explicit about it.
2025-09-09 02:36:02 +09:00

25 lines
822 B
Text

<% @page_title = "2FA - Recovery Codes" %>
<% @page_message = "Verify your sign in" %>
<% form(action: rodauth.recovery_auth_path, method: :post, class: "rodauth space-y-6") do %>
<%== part(
"components/form/text",
name: rodauth.recovery_codes_param,
label: "#{rodauth.recovery_codes_label}#{rodauth.input_field_label_suffix}",
attributes: {
required: true,
autocomplete: "off"
}
) %>
<div class="flex flex-col text-center">
<%== part("components/form/submit_button", text: rodauth.recovery_auth_button) %>
<p class="mt-10 text-center text-sm text-gray-400">
Can't access your recovery codes?
<br>
<a href="mailto:support@ubicloud.com" class="font-semibold leading-6 text-orange-500 hover:text-orange-700">contact support</a>
</p>
</div>
<% end %>