diff --git a/app/views/auth/sessions/two_factor/_otp_authentication_form.html.haml b/app/views/auth/sessions/two_factor/_otp_authentication_form.html.haml index 6062d33a1b..9f4b01a613 100644 --- a/app/views/auth/sessions/two_factor/_otp_authentication_form.html.haml +++ b/app/views/auth/sessions/two_factor/_otp_authentication_form.html.haml @@ -1,7 +1,7 @@ = simple_form_for(resource, as: resource_name, url: session_path(resource_name), - html: { method: :post, id: 'otp-authentication-form' }.merge(hidden ? { class: 'hidden' } : {})) do |f| + html: { method: :post, id: 'otp-authentication-form', class: [hidden:] }) do |f| %p.hint.authentication-hint= t('simple_form.hints.sessions.otp') .fields-group diff --git a/app/views/auth/sessions/two_factor/_webauthn_form.html.haml b/app/views/auth/sessions/two_factor/_webauthn_form.html.haml index 32ed1294aa..abddf9db84 100644 --- a/app/views/auth/sessions/two_factor/_webauthn_form.html.haml +++ b/app/views/auth/sessions/two_factor/_webauthn_form.html.haml @@ -5,7 +5,7 @@ = simple_form_for(resource, as: resource_name, url: session_path(resource_name), - html: { method: :post, id: 'webauthn-form' }.merge(hidden ? { class: 'hidden' } : {})) do |f| + html: { method: :post, id: 'webauthn-form', class: [hidden:] }) do |f| %h3.title= t('simple_form.title.sessions.webauthn') %p.hint= t('simple_form.hints.sessions.webauthn')