Welcome to mirror list, hosted at ThFree Co, Russian Federation.

update_two_factor_requirement_for_members_worker.rb « groups « workers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ac1d3589516f6f9dc8d09b98fb4ca1798bd18b3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# frozen_string_literal: true

# Worker for updating two factor requirement for all group members
module Groups
  class UpdateTwoFactorRequirementForMembersWorker
    include ApplicationWorker

    data_consistency :always

    idempotent!

    feature_category :authentication_and_authorization

    def perform(group_id)
      group = Group.find_by_id(group_id)

      return unless group

      group.update_two_factor_requirement_for_members
    end
  end
end