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)
9 lines
417 B
Plaintext
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>
|