Class: Workarea::Api::Storefront::PasswordResetsController
- Inherits:
-
ApplicationController
- Object
- Workarea::ApplicationController
- ApplicationController
- Workarea::Api::Storefront::PasswordResetsController
- Defined in:
- app/controllers/workarea/api/storefront/password_resets_controller.rb
Instance Method Summary collapse
Methods inherited from ApplicationController
#assert_current_metrics_id, #cache_page, #skip_session
Methods included from Authentication
#authentication?, #current_user, find_user
Instance Method Details
#create ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'app/controllers/workarea/api/storefront/password_resets_controller.rb', line 5 def create password_reset = Workarea::User::PasswordReset.setup!(params[:email]) Workarea::Storefront::AccountMailer .password_reset(password_reset.id.to_s) .deliver_later head :ok end |