debian-mirror-gitlab/app/services/two_factor/base_service.rb

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

16 lines
317 B
Ruby
Raw Normal View History

2020-11-24 15:15:51 +05:30
# frozen_string_literal: true
module TwoFactor
class BaseService
include BaseServiceUtility
2023-01-13 00:05:48 +05:30
attr_reader :current_user, :user, :group
2020-11-24 15:15:51 +05:30
def initialize(current_user, params = {})
2021-04-29 21:17:54 +05:30
@current_user = current_user
2020-11-24 15:15:51 +05:30
@user = params.delete(:user)
2023-01-13 00:05:48 +05:30
@group = params.delete(:group)
2020-11-24 15:15:51 +05:30
end
end
end