Delete spree_user_signup which is from spree promotions code that we dont use

This commit is contained in:
Luis Ramos
2020-06-27 16:44:46 +01:00
parent 1666ffb191
commit bf3150ddc8
3 changed files with 0 additions and 11 deletions

View File

@@ -23,7 +23,6 @@ module Spree
if resource.save
set_flash_message(:notice, :signed_up)
sign_in(:spree_user, @user)
session[:spree_user_signup] = true
associate_user
respond_with resource, location: after_sign_up_path_for(resource)
else

View File

@@ -16,7 +16,6 @@ class UserRegistrationsController < Spree::UserRegistrationsController
return render_error(@user.errors)
end
session[:spree_user_signup] = true
session[:confirmation_return_url] = params[:return_url]
associate_user

View File

@@ -65,15 +65,6 @@ module Spree
end
end
# This will trigger any "first order" promotions to be triggered
# Assuming of course that this session variable was set correctly in
# the authentication provider's registrations controller
if session[:spree_user_signup] && @order
fire_event('spree.user.signup', user: spree_current_user,
order: @order)
session[:spree_user_signup] = nil
end
session[:guest_token] = nil
end