Closed shifuma closed 9 months ago
That second error indicates that no id
parameter value was submitted. Can you double check that you are indeed setting the value of id
before the form is output, and that it is non-empty?
Yeah, I confirmed that it is set properly: <input type="hidden" name="id" value="8ff325bd-31....">
I tracked this down to a bug which I'll fix for the next release. Sprig has special handling for the set password action and something must have changed in Craft since 4.0.0 to trigger this issue. Thanks for reporting!
Great to hear, thanks Ben!
Fixed in https://github.com/putyourlightson/craft-sprig-core/commit/1b0bb173dca2281889ff934dd07b88803801b1c4 for the next release.
Following other Sprig forms I've built and Ryan's video, I have a user registration flow and set password form with Sprig that has recently stopped working.
With this I get a couple of errors:
I tried inlining the values like this
<form sprig s-method="post" s-action="users/set-password" s-val:code="{{ code }}" s-val:id="{{ id }}">
but there was no difference in behaviour.I was able to reproduce on a fresh Craft 4.6.1 and Sprig 2.7.3 install. But I'm not convinced this is a Sprig thing since it's just hitting the
users/set-password
controller?