Profile - 2FA error page [SCI-8779] (#5734)

* Fix 2FA form submit [SCI-8779]
This commit is contained in:
Soufiane 2023-07-11 09:22:42 +02:00 committed by GitHub
parent d8658991d6
commit a1e32e0c3d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -6,7 +6,7 @@
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span></button>
<h2 class="modal-title"><%= t("users.registrations.edit.2fa_modal.disable.title") %></h2>
</div>
<%= 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 %>
<div class="modal-body">
<p><%= t("users.registrations.edit.2fa_modal.disable.description") %></p>
<%= label_tag :password, t("users.registrations.edit.2fa_modal.disable.password_label") %>

View file

@ -3,7 +3,7 @@
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span></button>
<h2 class="modal-title"><%= t("users.registrations.edit.2fa_modal.step_3.title") %></h2>
</div>
<%= 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 %>
<div class="modal-body">
<p><%= t("users.registrations.edit.2fa_modal.step_3.description") %></p>
<p class="sci-input-container submit-code-field">