debian-mirror-gitlab/app/services/users/registrations_build_service.rb
2021-09-04 01:27:46 +05:30

18 lines
375 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