Skip to content

Commit a520ddb

Browse files
committed
Fix passkey authentication submit method
Unfortunately, the submit and cancel form were unintentionally "merged" by migrating the `link_to` to `button_to`, overwriting the method for the regular login. Regresses 0a38755
1 parent cfd5066 commit a520ddb

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed
Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
= form_tag(webauthn_credential_authentication_index_path, data: {public_key: @webauthn_get_options}, id: 'new_webauthn_credential_authentication')
2-
.mb-3
1+
.actions.mt-3
2+
= form_tag(webauthn_credential_authentication_index_path, data: {public_key: @webauthn_get_options}, id: 'new_webauthn_credential_authentication', class: 'd-inline-block')
33
= hidden_field_tag('webauthn_credential[credential]', '')
4-
.actions.mb-0
54
= submit_tag(t('.verify_identity'), class: 'btn btn-primary me-2 mb-2')
6-
= button_to(t('.cancel'), sign_out_path, method: :delete, class: 'btn btn-outline-secondary mb-2', data: {turbo: false})
5+
= button_to(t('.cancel'), sign_out_path, method: :delete, form_class: 'd-inline-block', class: 'btn btn-outline-secondary mb-2', data: {turbo: false})

0 commit comments

Comments
 (0)