debian-mirror-gitlab/app/services/users/registrations_build_service.rb

19 lines
375 B
Ruby
Raw Normal View History

2021-06-08 01:23:25 +05:30
# frozen_string_literal: true
module Users
class RegistrationsBuildService < BuildService
extend ::Gitlab::Utils::Override
private
2021-09-04 01:27:46 +05:30
def signup_params
super + [:skip_confirmation]
2021-06-08 01:23:25 +05:30
end
override :assign_skip_confirmation_from_settings?
2021-09-04 01:27:46 +05:30
def assign_skip_confirmation_from_settings?
2021-06-08 01:23:25 +05:30
user_params[:skip_confirmation].blank?
end
end
end