Class: TwoStep::TwoStepChallengesController

Inherits:
ApplicationController show all
Defined in:
app/controllers/two_step/two_step_challenges_controller.rb

Instance Method Summary collapse

Instance Method Details

#createObject



10
11
12
13
14
15
16
17
# File 'app/controllers/two_step/two_step_challenges_controller.rb', line 10

def create
  resource = pending_resource
  if params[:backup_code].present?
    verify_backup(resource)
  else
    verify_otp(resource)
  end
end

#newObject



7
8
# File 'app/controllers/two_step/two_step_challenges_controller.rb', line 7

def new
end