0
0
Fork 0

Fix contrast between background and form elements on some pages (#31266)

This commit is contained in:
Claire 2024-08-02 15:55:31 +02:00 committed by GitHub
parent cc453f2221
commit 2ec1181ee5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 1 additions and 37 deletions

View file

@ -83,7 +83,6 @@ module Auth::TwoFactorAuthenticationConcern
def prompt_for_two_factor(user)
register_attempt_in_session(user)
@body_classes = 'lighter'
@webauthn_enabled = user.webauthn_enabled?
@scheme_type = if user.webauthn_enabled? && user_params[:otp_attempt].blank?
'webauthn'

View file

@ -42,7 +42,6 @@ module ChallengableConcern
end
def render_challenge
@body_classes = 'lighter'
render 'auth/challenges/new', layout: 'auth'
end