mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Fix case with empty spree_user in user_registrations controller
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user