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