From b57b11be9d2ca242385bd5103c40590eec5f76de Mon Sep 17 00:00:00 2001 From: Karina Kwiatek Date: Wed, 4 Jan 2023 12:34:19 +0100 Subject: [PATCH] Change ID of 2FA form This caused an error in settings/password.ts as the form had the same ID as the account settings form --- app/views/auth/two_factor_authentication.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/auth/two_factor_authentication.html.haml b/app/views/auth/two_factor_authentication.html.haml index 82070fbd..ca348d90 100644 --- a/app/views/auth/two_factor_authentication.html.haml +++ b/app/views/auth/two_factor_authentication.html.haml @@ -5,7 +5,7 @@ .card.mt-3 .card-body %h1.mb-3.mt-0= t(".heading") - = bootstrap_form_for(resource, as: resource_name, url: session_path(resource_name), method: :post, data: { turbo: false }) do |f| + = bootstrap_form_for(resource, as: resource_name, url: session_path(resource_name), method: :post, html: { id: '2fa-form' }, data: { turbo: false }) do |f| = f.text_field :otp_attempt, autofocus: true, inputmode: :numeric, label: t(".otp_attempt") = f.submit t("voc.login"), class: "btn btn-primary mt-3 mb-3"