Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 0 additions & 13 deletions app/controllers/api/verify/base_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,6 @@ module Api
module Verify
class BaseController < ApplicationController
skip_before_action :verify_authenticity_token
include RenderConditionConcern

class_attribute :required_step

def self.required_step
NotImplementedError.new('Controller must define required_step')
end

check_or_render_not_found -> do
required_step = self.class.required_step
raise required_step if required_step.is_a?(NotImplementedError)
!required_step || IdentityConfig.store.idv_api_enabled_steps.include?(required_step)
end

before_action :confirm_two_factor_authenticated_for_api
respond_to :json
Expand Down
1 change: 0 additions & 1 deletion app/controllers/api/verify/document_capture_controller.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
module Api
module Verify
class DocumentCaptureController < BaseController
self.required_step = nil
include ApplicationHelper
include EffectiveUser

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ module Verify
class DocumentCaptureErrorsController < BaseController
include EffectiveUser

self.required_step = nil

def delete
form = DocumentCaptureErrorsDeleteForm.new(
document_capture_session_uuid: params[:document_capture_session_uuid],
Expand Down
93 changes: 0 additions & 93 deletions app/controllers/api/verify/password_confirm_controller.rb

This file was deleted.

30 changes: 0 additions & 30 deletions app/controllers/api/verify/password_reset_controller.rb

This file was deleted.

6 changes: 0 additions & 6 deletions app/controllers/idv/review_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ class ReviewController < ApplicationController

before_action :confirm_idv_steps_complete
before_action :confirm_idv_phone_confirmed
before_action :redirect_to_idv_app_if_enabled
before_action :confirm_current_password, only: [:create]

rescue_from UspsInPersonProofing::Exception::RequestEnrollException,
Expand Down Expand Up @@ -72,11 +71,6 @@ def log_reproof_event
irs_attempts_api_tracker.idv_reproof
end

def redirect_to_idv_app_if_enabled
return if !IdentityConfig.store.idv_api_enabled_steps.include?('password_confirm')
redirect_to idv_app_path
end

def flash_message_content
if idv_session.address_verification_mechanism != 'gpo'
phone_of_record_msg = ActionController::Base.helpers.content_tag(
Expand Down
67 changes: 0 additions & 67 deletions app/controllers/verify_controller.rb

This file was deleted.

49 changes: 0 additions & 49 deletions app/decorators/api/user_bundle_decorator.rb

This file was deleted.

Loading