summaryrefslogtreecommitdiff
path: root/app/services/users/registrations_build_service.rb
blob: 2d367e7b1851c381fe02a11e038b1380c9df3ba0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# frozen_string_literal: true

module Users
  class RegistrationsBuildService < BuildService
    extend ::Gitlab::Utils::Override

    private

    def signup_params
      super + [:skip_confirmation]
    end

    override :assign_skip_confirmation_from_settings?
    def assign_skip_confirmation_from_settings?
      user_params[:skip_confirmation].blank?
    end
  end
end