Class: Booth::Userland::Passwords::Edit

Inherits:
Object
  • Object
show all
Includes:
Concerns::Action
Defined in:
lib/booth/userland/passwords/edit.rb

Instance Method Summary collapse

Instance Method Details

#callObject



7
8
9
10
11
12
13
14
15
16
17
# File 'lib/booth/userland/passwords/edit.rb', line 7

def call
  request.must_be_get!
  request.must_be_html!
  request.must_be_logged_in!

  ::Booth::Userland::Passwords::Guards::Manageable.call(credential:) { return _1 }
  ::Booth::Userland::Passwords::Guards::Sudo.call(request:, credential:) { return _1 }

  do_clear_timed_out_sudo
    .on_success { do_edit_password }
end