From ed09db6003ab26f68fd4824de3da2a40c5bd36ef Mon Sep 17 00:00:00 2001 From: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com> Date: Sat, 9 Jan 2021 20:50:40 +0000 Subject: [PATCH] Fix broken specs related to accessing params hash --- app/controllers/user_passwords_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/user_passwords_controller.rb b/app/controllers/user_passwords_controller.rb index a27d8a5eb3..9314f5f41d 100644 --- a/app/controllers/user_passwords_controller.rb +++ b/app/controllers/user_passwords_controller.rb @@ -6,7 +6,7 @@ class UserPasswordsController < Spree::UserPasswordsController def create render_unconfirmed_response && return if user_unconfirmed? - self.resource = resource_class.send_reset_password_instructions(params[resource_name]) + self.resource = resource_class.send_reset_password_instructions(raw_params[resource_name]) if resource.errors.empty? set_flash_message(:success, :send_instructions) if is_navigational_format?