2021-04-28 03:09:58 +00:00
|
|
|
# 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?
|
2021-05-21 03:10:24 +00:00
|
|
|
def assign_skip_confirmation_from_settings?
|
2021-04-28 03:09:58 +00:00
|
|
|
user_params[:skip_confirmation].blank?
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|