-
-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Non compatible with Turbo #218
Comments
Can you explain a little more what needs to be changed to support Turbo? Is it default devise behaviour or custom stuff in this extension that might need to be updated to add support? |
Apologies I really need to turn notifications on here -- sure, so basically, when Turbo is enabled and a form is submitted, the form needs to redirect or else Turbo won't re-render the page, there is a lot of information about it over the Hotwire GitHub. The quick patch is to just change a couple methods in the user controllers: When things are successful the controllers redirect and are fine, but currently when a failure happens: That's in both the user sessions controller, and the user registrations controller. |
Some relevant issues: hotwired/turbo-rails#122 |
Turbo requires redirects on form submissions, or in the case on
render :new
when login fails, the status onunprocessable_entity
as the response code.Is it possible to update this in this gem?
The text was updated successfully, but these errors were encountered: