summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAishwarya Subramanian <asubramanian@gitlab.com>2019-09-06 16:23:14 +0000
committerRobert Speicher <rspeicher@gmail.com>2019-09-06 16:23:14 +0000
commite13f9319dd69a837bf9d37ee0969087809902850 (patch)
tree01bb2f148f2b83608596653c260042cdb4dbde26
parent551e864547b866a19aa1d9b3af2b259886a14fc2 (diff)
downloadgitlab-ce-e13f9319dd69a837bf9d37ee0969087809902850.tar.gz
Back porting changes to trigger user create event on Trial sign up
-rw-r--r--app/controllers/registrations_controller.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/registrations_controller.rb b/app/controllers/registrations_controller.rb
index e773ec09924..fb631f09f10 100644
--- a/app/controllers/registrations_controller.rb
+++ b/app/controllers/registrations_controller.rb
@@ -20,6 +20,7 @@ class RegistrationsController < Devise::RegistrationsController
super do |new_user|
persist_accepted_terms_if_required(new_user)
+ yield new_user if block_given?
end
rescue Gitlab::Access::AccessDeniedError
redirect_to(new_user_session_path)