Class: Kontena::Cli::ForgotPasswordCommand
- Inherits:
-
Clamp::Command
- Object
- Clamp::Command
- Kontena::Cli::ForgotPasswordCommand
- Includes:
- Common
- Defined in:
- lib/kontena/cli/forgot_password_command.rb
Instance Method Summary collapse
Methods included from Common
#access_token=, #add_master, #api_url, #api_url=, #clear_current_grid, #client, #current_grid, #current_grid=, #current_master, #current_master=, #current_master_index, #ensure_custom_ssl_ca, #require_api_url, #require_current_grid, #require_token, #reset_client, #save_settings, #settings, #settings_filename
Instance Method Details
#execute ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/kontena/cli/forgot_password_command.rb', line 6 def execute require_api_url params = {email: email} client.post('user/password_reset', params) puts 'Email with password reset instructions is sent to your email address. Please follow the instructions to change your password.' end |