Skip to content

Commit 5cfed8a

Browse files
feat: use two_factor_method_links helper for pointing to other 2FA methods
1 parent 9f8e053 commit 5cfed8a

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<%= link_to "Use security key", new_two_factor_challenge_path(resource_name, :webauthn) %>
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
<%= login_with_security_key_form_for(resource_name) do |form| %>
22
<%= form.submit 'Use security key' %>
33
<% end %>
4+
5+
<%= two_factor_method_links(@authenticating_resource, :webauthn) %>

0 commit comments

Comments
 (0)