Class: FinApps::REST::OperatorsPasswordResets
- Inherits:
-
FinAppsCore::REST::Resources
- Object
- FinAppsCore::REST::Resources
- FinApps::REST::OperatorsPasswordResets
- Defined in:
- lib/finapps/rest/operators_password_resets.rb
Instance Method Summary collapse
Instance Method Details
#create(params, path = nil) ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'lib/finapps/rest/operators_password_resets.rb', line 6 def create(params, path = nil) not_blank(params, :params) validates_email(params) if path.nil? path ||= 'operators/password/forgot' super params, path end |
#update(params) ⇒ Object
15 16 17 18 19 20 |
# File 'lib/finapps/rest/operators_password_resets.rb', line 15 def update(params) not_blank(params, :params) path = 'operators/password/reset' create params, path end |