Skip to content

Commit

Permalink
Disable Turbo Drive on login form
Browse files Browse the repository at this point in the history
With latest turbo-rails the redirect on missing
credentials leads to an JS error breaking the form.
  • Loading branch information
tvdeyen committed Apr 30, 2024
1 parent d8afea3 commit 7602f32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/alchemy/admin/user_sessions/new.html.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div class="login_signup_box">
<%= image_tag 'alchemy/alchemy-logo.svg', id: 'logo' %>
<%= alchemy_form_for :user, url: {action: 'create'}, id: 'login' do |f| %>
<%= alchemy_form_for :user, url: {action: 'create'}, id: 'login', data: { turbo: false } do |f| %>
<%= f.input Devise.authentication_keys.first, autofocus: true %>
<%= f.input :password %>
<div class="input link">
Expand Down

0 comments on commit 7602f32

Please sign in to comment.