Disable Turbo on sign in forms
This commit is contained in:
parent
3fa607f39c
commit
010f871eb2
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue