Class: Spree::Api::V2::Storefront::AccountRecoversController
- Inherits:
-
BaseController
- Object
- BaseController
- Spree::Api::V2::Storefront::AccountRecoversController
- Defined in:
- app/controllers/spree/api/v2/storefront/account_recovers_controller.rb
Instance Method Summary collapse
Instance Method Details
#update ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'app/controllers/spree/api/v2/storefront/account_recovers_controller.rb', line 6 def update context = SpreeCmCommissioner::AccountRecover.call(**filter_params.slice(:id_token, :login, :password)) if context.success? head :ok else render_error_payload(context.) end end |