Class: Harvest::API::Users
- Inherits:
-
Base
- Object
- Base
- Harvest::API::Users
- Includes:
- Behavior::Activatable, Behavior::Crud
- Defined in:
- lib/forecast/api/users.rb
Instance Method Summary collapse
-
#reset_password(user) ⇒ Harvest::User
Triggers Harvest to reset the user’s password and sends them an email to change it.
Instance Method Details
#reset_password(id) ⇒ Harvest::User #reset_password(user) ⇒ Harvest::User
Triggers Harvest to reset the user’s password and sends them an email to change it.
15 16 17 18 |
# 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 |