Class: Booth::Userland::Webauths::Transitions::Create::RegistrationVerification
- Inherits:
-
Object
- Object
- Booth::Userland::Webauths::Transitions::Create::RegistrationVerification
- Includes:
- Concerns::Transition, Logging
- Defined in:
- lib/booth/userland/webauths/transitions/create/registration_verification.rb
Overview
Controller Transition to verify and persist a new hardware key.
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.applicable?(params:) ⇒ Boolean
13 14 15 |
# File 'lib/booth/userland/webauths/transitions/create/registration_verification.rb', line 13 def self.applicable?(params:) params&.key?(:register) && params[:handshake]&.key?(:rawId) end |
Instance Method Details
#call ⇒ Object
17 18 19 20 |
# File 'lib/booth/userland/webauths/transitions/create/registration_verification.rb', line 17 def call do_verify_response .on_success { do_persist_keys } end |