From c65b3decb0f287fe1b17eab742b923434a281397 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20G=C3=BCnther?= Date: Fri, 13 Sep 2024 14:11:20 +0200 Subject: [PATCH] Opt out of turbo for resend --- .../authentication/request_otp.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/two_factor_authentication/app/views/two_factor_authentication/authentication/request_otp.html.erb b/modules/two_factor_authentication/app/views/two_factor_authentication/authentication/request_otp.html.erb index 479c1d1d67db..71ae5492e4ed 100644 --- a/modules/two_factor_authentication/app/views/two_factor_authentication/authentication/request_otp.html.erb +++ b/modules/two_factor_authentication/app/views/two_factor_authentication/authentication/request_otp.html.erb @@ -91,7 +91,7 @@ <% @active_devices.each do |device| %> <% next if device.id == @used_device.id %>
  • - <%= form_tag({ action: :retry }, method: :post) do %> + <%= form_tag({ action: :retry }, method: :post, data: { turbo: false }) do %> <%= hidden_field_tag 'use_device', device.id %> <%= submit_tag device.redacted_identifier, class: 'button--link' %> <% end %>