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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
421 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
2022-06-21 17:19:12 +05:30
Users::RegistrationsBuildService.prepend_mod