You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+17-5Lines changed: 17 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,16 +6,28 @@
6
6
7
7
- Options for getting or creating passkeys and security keys are now served by dedicated Rails controllers and retrieved via JavaScript fetch requests. [#73](https://github.com/cedarcode/devise-webauthn/pull/73)[@nicolastemciuc]
8
8
- BREAKING!: Remove helpers for generating WebAuthn options. [#106](https://github.com/cedarcode/devise-webauthn/pull/115)[@nicolastemciuc]
9
+
- BREAKING!: Replace `form_classes:` keyword argument with direct keyword arguments in all form helper methods (`passkey_creation_form_for`, `login_with_passkey_form_for`, `security_key_creation_form_for`, `login_with_security_key_form_for`). All options are delegated to `form_with`, allowing you to pass any HTML attributes or form options directly. [@RenzoMinelli]
10
+
```erb
11
+
<%# Before %>
12
+
<%= passkey_creation_form_for(:user, form_classes: "my-class") do |form| %>
- BREAKING: `login_with_passkey_button` and `login_with_security_key_button` helpers have been renamed to `login_with_passkey_form_for` and `login_with_security_key_form_for`. They now take a block and no longer generate the submit button automatically. You need to explicitly add the button inside the block:
22
+
- BREAKING!: `login_with_passkey_button` and `login_with_security_key_button` helpers have been renamed to `login_with_passkey_form_for` and `login_with_security_key_form_for`. They now take a block and no longer generate the submit button automatically. You need to explicitly add the button inside the block:
11
23
```erb
12
24
<%# Before %>
13
-
<%%= login_with_passkey_button(:user, "Log in with passkeys") %>
25
+
<%= login_with_passkey_button(:user, "Log in with passkeys") %>
14
26
15
27
<%# After %>
16
-
<%%= login_with_passkey_form_for(:user) do |form| %>
17
-
<%%= form.submit "Log in with passkeys" %>
18
-
<%% end %>
28
+
<%= login_with_passkey_form_for(:user) do |form| %>
0 commit comments