diff --git a/app/controllers/idv/cancellations_controller.rb b/app/controllers/idv/cancellations_controller.rb index a3ac1ca6b87..da80fc6f488 100644 --- a/app/controllers/idv/cancellations_controller.rb +++ b/app/controllers/idv/cancellations_controller.rb @@ -36,16 +36,6 @@ def destroy end end - def exit - analytics.idv_cancellation_confirmed(step: params[:step]) - cancel_session - if hybrid_session? - render :destroy - else - redirect_to cancelled_redirect_path - end - end - private def barcode_step? diff --git a/app/javascript/packages/verify-flow/cancel.spec.tsx b/app/javascript/packages/verify-flow/cancel.spec.tsx index 2e7fa1e8140..07b62c02982 100644 --- a/app/javascript/packages/verify-flow/cancel.spec.tsx +++ b/app/javascript/packages/verify-flow/cancel.spec.tsx @@ -16,7 +16,6 @@ describe('Cancel', () => { value={{ accountURL: 'http://example.test/account', cancelURL: 'http://example.test/cancel', - exitURL: 'http://example.test/exit', currentStep: 'one', }} > diff --git a/app/javascript/packages/verify-flow/context/flow-context.tsx b/app/javascript/packages/verify-flow/context/flow-context.tsx index 3107713b482..52307badc55 100644 --- a/app/javascript/packages/verify-flow/context/flow-context.tsx +++ b/app/javascript/packages/verify-flow/context/flow-context.tsx @@ -9,12 +9,6 @@ export interface FlowContextValue { * URL to path for session cancel. */ cancelURL: string; - - /** - * URL to exit session without confirmation - */ - exitURL: string; - /** * Current step name. */ @@ -24,7 +18,6 @@ export interface FlowContextValue { const FlowContext = createContext({ accountURL: '', cancelURL: '', - exitURL: '', currentStep: '', }); diff --git a/app/javascript/packs/document-capture.tsx b/app/javascript/packs/document-capture.tsx index e3f0413965d..be9c15bd19b 100644 --- a/app/javascript/packs/document-capture.tsx +++ b/app/javascript/packs/document-capture.tsx @@ -31,7 +31,6 @@ interface AppRootData { acuantVersion: string; flowPath: FlowPath; cancelUrl: string; - exitUrl: string; idvInPersonUrl?: string; optedInToInPersonProofing: string; securityAndPrivacyHowItWorksUrl: string; @@ -95,7 +94,6 @@ const { acuantVersion, flowPath, cancelUrl: cancelURL, - exitUrl: exitURL, accountUrl: accountURL, idvInPersonUrl: inPersonURL, securityAndPrivacyHowItWorksUrl: securityAndPrivacyHowItWorksURL, @@ -171,7 +169,6 @@ const App = composeComponents( value: { accountURL, cancelURL, - exitURL, currentStep: 'document_capture', }, }, diff --git a/app/views/idv/shared/_document_capture.html.erb b/app/views/idv/shared/_document_capture.html.erb index fe7062b44c9..55937af8663 100644 --- a/app/views/idv/shared/_document_capture.html.erb +++ b/app/views/idv/shared/_document_capture.html.erb @@ -26,7 +26,6 @@ sp_name: sp_name, flow_path: flow_path, cancel_url: idv_cancel_path(step: :document_capture), - exit_url: idv_exit_path, account_url: account_path, failure_to_proof_url: failure_to_proof_url, opted_in_to_in_person_proofing: opted_in_to_in_person_proofing, diff --git a/config/routes.rb b/config/routes.rb index d35856e3b40..c6290cc7c78 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -381,7 +381,6 @@ get '/cancel/' => 'cancellations#new', as: :cancel put '/cancel' => 'cancellations#update' delete '/cancel' => 'cancellations#destroy' - get '/exit' => 'cancellations#exit', as: :exit get '/address' => 'address#new' post '/address' => 'address#update' get '/capture_doc' => 'hybrid_mobile/entry#show'