Disable Turbo on sign in forms

This commit is contained in:
Karina Kwiatek 2023-03-19 15:48:34 +01:00 committed by Andreas Nedbal
parent 3fa607f39c
commit 010f871eb2
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@
.card.mt-3
.card-body
%h1 Change your password
= bootstrap_form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put }) do |f|
= bootstrap_form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put, data: { turbo: false } }) do |f|
= render 'devise/shared/error_messages', resource: resource
= f.hidden_field :reset_password_token

View File

@ -6,7 +6,7 @@
.card.mt-3
.card-body
%h1.mb-3.mt-0= t(".title")
= bootstrap_form_for(resource, as: resource_name, url: session_path(resource_name)) do |f|
= bootstrap_form_for(resource, as: resource_name, url: session_path(resource_name), data: { turbo: false }) do |f|
= f.text_field :login, autofocus: true, autocomplete: :username
= f.password_field :password, autocomplete: "current-password"