class Harvest::API::Users

Public Instance Methods

reset_password(user) click to toggle source

Triggers Harvest to reset the user's password and sends them an email to change it. @overload reset_password(id)

@param [Integer] id the id of the user you want to reset the password for

@overload reset_password(user)

@param [Harvest::User] user the user you want to reset the password for

@return [Harvest::User] the user you passed in

# File lib/forecast/api/users.rb, line 15
def reset_password(user)
  request(:post, credentials, "#{api_model.api_path}/#{user.to_i}/reset_password")
  user
end