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
This commit is contained in:
Karina Kwiatek 2023-01-04 12:34:19 +01:00
parent 3033ad4400
commit b57b11be9d
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@
.card.mt-3 .card.mt-3
.card-body .card-body
%h1.mb-3.mt-0= t(".heading") %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.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" = f.submit t("voc.login"), class: "btn btn-primary mt-3 mb-3"