diff --git a/CHANGELOG.rdoc b/CHANGELOG.rdoc index d969f6de..2367b7a7 100644 --- a/CHANGELOG.rdoc +++ b/CHANGELOG.rdoc @@ -11,6 +11,7 @@ * Do not convert booleans to strings on finders (by github.com/xavier) * Run validations even if current_password fails (by github.com/crx) * Devise now honors routes constraints (by github.com/macmartine) + * Do not return the user resource when requesting instructions (by github.com/rodrigoflores) == 1.3.4 diff --git a/app/controllers/devise/passwords_controller.rb b/app/controllers/devise/passwords_controller.rb index b9289d28..b0f8acc0 100644 --- a/app/controllers/devise/passwords_controller.rb +++ b/app/controllers/devise/passwords_controller.rb @@ -14,13 +14,12 @@ class Devise::PasswordsController < ApplicationController if successful_and_sane?(resource) set_flash_message(:notice, :send_instructions) if is_navigational_format? - respond_with {}, :location => after_sending_reset_password_instructions_path_for(resource_name) + respond_with({}, :location => after_sending_reset_password_instructions_path_for(resource_name)) else respond_with_navigational(resource){ render_with_scope :new } end end - # GET /resource/password/edit?reset_password_token=abcdef def edit self.resource = resource_class.new