Method: WePredict::CLI::User#change_email

Defined in:
lib/wepredict/cli/user.rb

#change_email(email, new_email) ⇒ Object



72
73
74
75
76
77
# File 'lib/wepredict/cli/user.rb', line 72

def change_email(email, new_email)
  password = authenticate(email)
  WePredict::User.change_email(:email => email, :password => password, :new_email => email)
  
  say "Sucessfully changed your email address", :green
end