Class: Booth::Userland::Webauths::Transitions::Create::ChooseNickname

Inherits:
Object
  • Object
show all
Includes:
Concerns::Transition
Defined in:
lib/booth/userland/webauths/transitions/create/choose_nickname.rb

Overview

User submits form to set custom name for a registered Passkey.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.applicable?(params:) ⇒ Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/booth/userland/webauths/transitions/create/choose_nickname.rb', line 12

def self.applicable?(params:)
  params.dig(:webauth, :nickname)
end

Instance Method Details

#callObject



16
17
18
19
# File 'lib/booth/userland/webauths/transitions/create/choose_nickname.rb', line 16

def call
  do_check_blank_nickname
    .on_success { do_update_authenticator }
end