debian-mirror-gitlab/app/services/users/registrations_build_service.rb
2022-06-21 17:19:12 +05:30

20 lines
421 B
Ruby

# 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
Users::RegistrationsBuildService.prepend_mod