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

registrations_build_service.rb « users « services « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9d7bf0a7e1894a969f01efd31f787f090e4b4bbf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# frozen_string_literal: true

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

    private

    override :allow_caller_to_request_skip_confirmation?
    def allow_caller_to_request_skip_confirmation?
      true
    end

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