Welcome to mirror list, hosted at ThFree Co, Russian Federation.

new_user_notifier.rb « users « concerns « services « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 11547e4a5b607c5729aec8189c04df345d8b6c06 (plain)
1
2
3
4
5
6
7
8
9
10
11
# frozen_string_literal: true

module Users
  module NewUserNotifier
    def notify_new_user(user, reset_token)
      log_info("User \"#{user.name}\" (#{user.email}) was created")
      notification_service.new_user(user, reset_token) if reset_token
      system_hook_service.execute_hooks_for(user, :create)
    end
  end
end