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
fix: narrow scope change to login_with_passkey_form_for only
Creation form helpers shouldn't scope fields under the Devise resource
since those fields (like :name) are passkey/security key attributes, not
account attributes. Only login_with_passkey_form_for needs the scope so
that f.check_box :remember_me generates account[remember_me].
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,7 @@
37
37
### Fixed
38
38
39
39
- Fix form helpers (`passkey_creation_form_for`, `login_with_passkey_button`, `security_key_creation_form_for`, `login_with_security_key_button`) to accept a `resource_name` instead of requiring the `resource` object from the view context. [#114](https://github.com/cedarcode/devise-webauthn/pull/114)[@RenzoMinelli]
40
-
-BREAKING!: Scope form helpers to the Devise resource so that form builder fields (e.g. `f.check_box :remember_me`) are properly namespaced under the resource (e.g. `account[remember_me]`). Controllers now read `:name` from scoped params (`params.dig(resource_name, :name)`) instead of `params[:name]`. [#134](https://github.com/cedarcode/devise-webauthn/pull/134)[@RenzoMinelli]
40
+
- Scope `login_with_passkey_form_for`to the Devise resource so that form builder fields (e.g. `f.check_box :remember_me`) are properly namespaced (e.g. `account[remember_me]`). [#134](https://github.com/cedarcode/devise-webauthn/pull/134)[@RenzoMinelli]
0 commit comments