From a1e32e0c3d8f7b64e4be84215119386674e6999a Mon Sep 17 00:00:00 2001 From: Soufiane Date: Tue, 11 Jul 2023 09:22:42 +0200 Subject: [PATCH] Profile - 2FA error page [SCI-8779] (#5734) * Fix 2FA form submit [SCI-8779] --- app/views/users/registrations/_2fa_modal.html.erb | 2 +- .../users/registrations/_2fa_modal_verify_code_tab.html.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/users/registrations/_2fa_modal.html.erb b/app/views/users/registrations/_2fa_modal.html.erb index fcd6fb6c5..c37e8bede 100644 --- a/app/views/users/registrations/_2fa_modal.html.erb +++ b/app/views/users/registrations/_2fa_modal.html.erb @@ -6,7 +6,7 @@ - <%= form_with(url: main_app.users_2fa_disable_path, method: "post", class: "2fa-disable-form") do %> + <%= form_with(url: main_app.users_2fa_disable_path, method: "post", class: "2fa-disable-form", html: { data: { remote: true } }) do %> - <%= form_with(url: main_app.users_2fa_enable_path, method: "post", class: "2fa-enable-form") do %> + <%= form_with(url: main_app.users_2fa_enable_path, method: "post", class: "2fa-enable-form", html: { data: { remote: true } }) do %>