Class: Spree::Admin::UserPasswordsController
- Inherits:
-
Object
- Object
- Spree::Admin::UserPasswordsController
- Includes:
- AuthRateLimiting
- Defined in:
- app/controllers/spree/admin/user_passwords_controller.rb
Instance Method Summary collapse
Instance Method Details
#create {|resource| ... } ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'app/controllers/spree/admin/user_passwords_controller.rb', line 10 def create self.resource = resource_class.send_reset_password_instructions(resource_params) yield resource if block_given? (:notice, :send_instructions) if # Don't not show error message that the email was not found respond_with({}, location: after_sending_reset_password_instructions_path_for(resource_name)) end |