Class: Booth::Userland::Sessions::Transitions::Destroy::VerifyPassword
- Inherits:
-
Object
- Object
- Booth::Userland::Sessions::Transitions::Destroy::VerifyPassword
- Includes:
- Concerns::Transition
- Defined in:
- lib/booth/userland/sessions/transitions/destroy/verify_password.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.applicable?(params:) ⇒ Boolean
9 10 11 |
# File 'lib/booth/userland/sessions/transitions/destroy/verify_password.rb', line 9 def self.applicable?(params:) params.dig(:revocation, :password) end |
Instance Method Details
#call ⇒ Object
13 14 15 16 |
# File 'lib/booth/userland/sessions/transitions/destroy/verify_password.rb', line 13 def call do_find_credential .on_success { do_revoke_sessions } end |