Class: Booth::Userland::Webauths::Transitions::Create::ChooseNickname
- Inherits:
-
Object
- Object
- Booth::Userland::Webauths::Transitions::Create::ChooseNickname
- 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
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
#call ⇒ Object
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 |