Fix broken specs related to accessing params hash

This commit is contained in:
Matt-Yorkley
2021-01-09 20:50:40 +00:00
parent 2fdb1861a6
commit ed09db6003

View File

@@ -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?