Update registratuion_controller.rb to handle turbo_stream format for iOS auth

This commit is contained in:
Eugene Burmakin 2025-09-21 15:27:17 +02:00
parent 550b405398
commit e3795981e3

View file

@ -5,7 +5,7 @@
<p class="py-6">and take control over your location data.</p>
</div>
<div class="card flex-shrink-0 w-full max-w-sm shadow-2xl bg-base-100 px-5 py-5">
<%= form_for(resource, as: resource_name, url: registration_path(resource_name), class: 'form-body ') do |f| %>
<%= form_for(resource, as: resource_name, url: registration_path(resource_name), class: 'form-body', html: { data: { turbo: session[:dawarich_client] == 'ios' ? false : true } }) do |f| %>
<div class="form-control">
<%= f.label :email, class: 'label' do %>
<span class="label-text">Email</span>