Class: Central::Cli::User::ForgotPasswordCommand
- Inherits:
-
Clamp::Command
- Object
- Clamp::Command
- Central::Cli::User::ForgotPasswordCommand
- Includes:
- Common
- Defined in:
- lib/central/cli/user/forgot_password_command.rb
Instance Method Summary collapse
Methods included from Common
#access_token=, #add_master, #api_url, #api_url=, #clear_current_stack, #client, #current_master, #current_master=, #current_master_index, #current_stack, #current_stack=, #ensure_custom_ssl_ca, #require_api_url, #require_current_stack, #require_token, #reset_client, #save_settings, #settings, #settings_filename
Instance Method Details
#execute ⇒ Object
9 10 11 12 13 14 |
# File 'lib/central/cli/user/forgot_password_command.rb', line 9 def execute params = { email: email } auth_client = Central::Client.new(auth_provider_url) auth_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 |