Files
ubicloud/views/auth/two_factor_auth.erb
Jeremy Evans b78d6b27db Remove unneeded branches in two_factor_auth page
This page is only shown if both otp and webauthn are setup for
the account.  If otp is setup and webauthn is not, request
is redirected to otp page.  If webauthn is setup and otp is
not, request is redirected to webauthn page.

This should be reverted if we add an multifactor option
(beyond recovery codes, which are deliberately not shown
as an option on this page).

After changes:

Line Coverage: 100.0% (11677 / 11677)
Branch Coverage: 99.65% (3096 / 3107)
2025-01-14 09:04:22 -08:00

9 lines
417 B
Plaintext

<% @page_title = "Two-factor Authentication" %>
<% @page_message = "Select a two-factor authentication method" %>
<div class="rodauth space-y-6 flex flex-col text-center">
<%== render("components/button", locals: { text: rodauth.otp_auth_link_text, link: rodauth.otp_auth_path }) %>
<%== render("components/button", locals: { text: rodauth.webauthn_auth_link_text, link: rodauth.webauthn_auth_path }) %>
</div>