This commit is contained in:
24c02 2026-01-28 23:32:08 -05:00
parent 85277ec32a
commit 36aa828fb1
2 changed files with 19 additions and 4 deletions

View file

@ -38,9 +38,21 @@
</div>
<div x-show="!browserSupported" x-cloak class="auth-card">
<div class="alert alert-warning">
<strong>Browser Not Supported</strong>
<p><%= t(".browser_not_supported") %></p>
<header>
<h1><%= t(".title") %></h1>
<small><%= t(".browser_not_supported") %></small>
</header>
<div class="alert alert-warning" style="margin-bottom: 1.5rem;">
<strong>Passkeys Not Supported</strong>
<p>Your browser doesn't support passkeys, but you can still sign in with an email code.</p>
</div>
<p style="text-align: center;">
<%= button_to t(".use_email_code"),
skip_webauthn_login_attempt_path(@attempt),
method: :post,
class: "btn" %>
</p>
</div>
</div>

View file

@ -99,9 +99,12 @@
</div>
<div x-show="!browserSupported" x-cloak>
<div class="alert alert-error">
<div class="alert alert-warning" style="margin-bottom: 1rem;">
Your browser doesn't support passkeys. Please use a different verification method.
</div>
<p style="text-align: center;">
<%= link_to "Choose a different method →", new_step_up_path(action_type: @action, return_to: @return_to), class: "btn" %>
</p>
</div>
<%= form_with url: verify_step_up_webauthn_path, method: :post, local: true, id: "step-up-webauthn-form" do |f| %>