Class: Booth::Userland::Webauths::Destroy
- Inherits:
-
Object
- Object
- Booth::Userland::Webauths::Destroy
- Includes:
- Concerns::Action
- Defined in:
- lib/booth/userland/webauths/destroy.rb
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/booth/userland/webauths/destroy.rb', line 11 def call request.must_be_delete! request.must_be_html! request.must_be_logged_in! ::Booth::Userland::Webauths::Guards::Sudo.call(request:, credential:) { return it } do_require_eligible_credential .on_success { do_find_authenticator } .on_success { do_destroy_authenticator } end |