Fix case with empty spree_user in user_registrations controller

This commit is contained in:
Luis Ramos
2020-03-05 18:43:35 +00:00
parent d0bd2818c2
commit 6ed93da3f1

View File

@@ -33,6 +33,8 @@ class UserRegistrationsController < Spree::UserRegistrationsController
private
def spree_user_params
return params[:spree_user] if params[:spree_user].empty?
params.require(:spree_user).
permit(:email, :password, :password_confirmation, :remember_me)
end