mirror of
https://github.com/mastodon/mastodon.git
synced 2026-04-25 16:05:44 -05:00
Use implicit class_names in 2FA partials (#37846)
This commit is contained in:
parent
bfec82e5f9
commit
db64ae368f
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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')
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user