Use implicit class_names in 2FA partials (#37846)

This commit is contained in:
Matt Jankowski
2026-02-12 10:19:43 -05:00
committed by GitHub
parent bfec82e5f9
commit db64ae368f
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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')