2020-08-20 11:10:18 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module TwoFactor
|
|
|
|
class BaseService
|
|
|
|
include BaseServiceUtility
|
|
|
|
|
|
|
|
attr_reader :current_user, :params, :user
|
|
|
|
|
|
|
|
def initialize(current_user, params = {})
|
2021-04-19 17:09:27 -04:00
|
|
|
@current_user = current_user
|
|
|
|
@params = params
|
2020-08-20 11:10:18 -04:00
|
|
|
@user = params.delete(:user)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|