0
0
Fork 0

Fix haml-lint InstanceVariables rule for auth/sessions/two_factor/o… (#27372)

This commit is contained in:
Matt Jankowski 2023-10-12 03:44:20 -04:00 committed by GitHub
parent 85b36fbbd3
commit d4c2dca874
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 8 deletions

View file

@ -5,6 +5,7 @@ module TwoFactorAuthenticationConcern
included do
prepend_before_action :authenticate_with_two_factor, if: :two_factor_enabled?, only: [:create]
helper_method :webauthn_enabled?
end
def two_factor_enabled?
@ -87,4 +88,10 @@ module TwoFactorAuthenticationConcern
set_locale { render :two_factor }
end
protected
def webauthn_enabled?
@webauthn_enabled
end
end