Skip to content

Commit

Permalink
correct some small code inconsistency
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinsmaster5 committed Oct 31, 2023
1 parent 371a363 commit 3c30b5d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
module TwoFactorAuthentication
class SetUpWebauthnPlatformSelectionPresenter < SetUpSelectionPresenter
def method
:webauthn_platform
end

def initialize(user:, configuration: nil)
@user = user
@configuration = configuration
end

def method
:webauthn_platform
end

def render_in(view_context, &block)
view_context.render(
WebauthnInputComponent.new(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,8 @@ def render_in(view_context, &block)
view_context.render(
WebauthnInputComponent.new(
platform: true,
passkey_supported_only: configuration.blank?,
show_unsupported_passkey:
configuration.blank? &&
IdentityConfig.store.show_unsupported_passkey_platform_authentication_setup,
passkey_supported_only: false,
show_unsupported_passkey: false,
),
&block
)
Expand Down

0 comments on commit 3c30b5d

Please sign in to comment.