Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.
# frozen_string_literal: true
module SecondFactor::Actions
class Base
include Rails.application.routes.url_helpers
attr_reader :current_user, :guardian, :request
def initialize(guardian, request, opts = nil)
@guardian = guardian
@current_user = guardian.user
@request = request
@opts = HashWithIndifferentAccess.new(opts)
end
def skip_second_factor_auth?(params)
false
def second_factor_auth_skipped!(params)
raise NotImplementedError.new
def no_second_factors_enabled!(params)
def second_factor_auth_required!(params)
def second_factor_auth_completed!(callback_params)