Sha256: cb1544044e14b89a1c515d8f5b0251857a3ace2215569402b199ab6968fc504e
Contents?: true
Size: 562 Bytes
Versions: 28
Compression:
Stored size: 562 Bytes
Contents
module Kontena::Cli::User class ForgotPasswordCommand < Clamp::Command include Kontena::Cli::Common parameter "EMAIL", "Email address" option "--auth-provider-url", "URL", "Auth provider URL", default: "https://auth.kontena.io/" def execute params = {email: email} auth_client = Kontena::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 end end
Version data entries
28 entries across 28 versions & 1 rubygems