Closed tolesco closed 11 months ago
I just saw that this is already being attended here: Always redirect magic link requests back to the sign_in page and render generic flash
I just generated the views with rails generate passwordless:views
, and sessions/create
was created as sessions.create
..
@tolesco try adding , data: { turbo: 'false' }
- it helped me with the redirect after form submission
-<%= form_with model: @session, url: send(Passwordless.mounted_as).sign_in_path do |f| %>
+<%= form_with model: @session, url: send(Passwordless.mounted_as).sign_in_path, data: { turbo: 'false' } do |f| %>
Thank you @yshmarov !, works great!
Short-term solution is to use data: { turbo: false }
like @yshmarov suggests above. (Thank you!)
Passwordless 1.0 handles this more gracefully.
Hi there 👋🏻 ,
Seems to be an issue with Rails 7.0.4 , if the user doesn't exist on the database it renders the
app/views/passwordless/sessions/create.html.erb
view perfectly, but if the user exists on the database, nothing is shown on the view.I suspect the issue comes from the new
TURBO_STREAM
format, thoughts?Evidence:
I'm receiving the magic link:
Full request log: