Commit 737a224
committed
Fix: Add local: true to invitation form to prevent blank token error
Fixes the "Invitation token can't be blank" error that occurs when new
users accept email invitations and try to set their password.
Root cause: PR #6528 refactored form_for to form_with, but form_with
defaults to remote: true (AJAX submission). This causes the hidden
invitation_token field to not be properly submitted with the form.
Solution: Add local: true to the form_with helper to use standard form
submission instead of AJAX, ensuring the invitation_token is correctly
included in the POST data.
Related to PR #6528 (form helper refactor)1 parent c4a8e3a commit 737a224
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
0 commit comments