diff --git a/app/assets/images/idv/bar_code.png b/app/assets/images/idv/bar_code.png deleted file mode 100644 index d3d7cab885c..00000000000 Binary files a/app/assets/images/idv/bar_code.png and /dev/null differ diff --git a/app/assets/stylesheets/components/_color.scss b/app/assets/stylesheets/components/_color.scss index e5a78902226..572de70adf1 100644 --- a/app/assets/stylesheets/components/_color.scss +++ b/app/assets/stylesheets/components/_color.scss @@ -1,4 +1,3 @@ @media #{$breakpoint-sm} { .sm-white { color: $white; } - .accent-blue { color: $blue; } } diff --git a/app/controllers/idv/in_person_controller.rb b/app/controllers/idv/in_person_controller.rb deleted file mode 100644 index 6fbaabb7fe6..00000000000 --- a/app/controllers/idv/in_person_controller.rb +++ /dev/null @@ -1,14 +0,0 @@ -module Idv - class InPersonController < ApplicationController - before_action :confirm_two_factor_authenticated - - include Flow::FlowStateMachine - - FSM_SETTINGS = { - step_url: :idv_in_person_step_url, - final_url: :account_url, - flow: Idv::Flows::InPersonFlow, - analytics_id: Analytics::IN_PERSON_PROOFING, - }.freeze - end -end diff --git a/app/models/profile.rb b/app/models/profile.rb index ecb9f7d4d69..69f7d20da3f 100644 --- a/app/models/profile.rb +++ b/app/models/profile.rb @@ -15,7 +15,6 @@ class Profile < ApplicationRecord encryption_error: 2, verification_pending: 3, verification_cancelled: 4, - in_person_pending: 5, } attr_reader :personal_key diff --git a/app/services/analytics.rb b/app/services/analytics.rb index ae7f3c4e72b..2bb3d037fe0 100644 --- a/app/services/analytics.rb +++ b/app/services/analytics.rb @@ -69,7 +69,6 @@ def browser_attributes ADD_EMAIL_VISIT = 'Add Email: enter email visited'.freeze CAPTURE_DOC = 'Capture Doc'.freeze # visited or submitted is appended DOC_AUTH = 'Doc Auth'.freeze # visited or submitted is appended - IN_PERSON_PROOFING = 'In Person Proofing'.freeze # visited or submitted is appended EMAIL_AND_PASSWORD_AUTH = 'Email and Password Authentication'.freeze EMAIL_DELETION_REQUEST = 'Email Deletion Requested'.freeze EVENT_DISAVOWAL = 'Event disavowal visited'.freeze diff --git a/app/services/idv/flows/in_person_flow.rb b/app/services/idv/flows/in_person_flow.rb deleted file mode 100644 index e4d40cd70b6..00000000000 --- a/app/services/idv/flows/in_person_flow.rb +++ /dev/null @@ -1,30 +0,0 @@ -module Idv - module Flows - class InPersonFlow < Flow::BaseFlow - STEPS = { - welcome: Idv::Steps::Ipp::WelcomeStep, - find_usps: Idv::Steps::Ipp::FindUspsStep, - usps_list: Idv::Steps::Ipp::UspsListStep, - enter_info: Idv::Steps::Ipp::EnterInfoStep, - verify: Idv::Steps::Ipp::VerifyStep, - encrypt: Idv::Steps::Ipp::EncryptStep, - bar_code: Idv::Steps::Ipp::BarCodeStep, - }.freeze - - ACTIONS = { - reset: Idv::Actions::ResetAction, - }.freeze - - attr_reader :idv_session # this is needed to support (and satisfy) the current LOA3 flow - - def initialize(controller, session, name) - @idv_session = self.class.session_idv(session) - super(controller, STEPS, ACTIONS, session[name]) - end - - def self.session_idv(session) - session[:idv] ||= { params: {}, step_attempts: { phone: 0 } } - end - end - end -end diff --git a/app/services/idv/steps/ipp/bar_code_step.rb b/app/services/idv/steps/ipp/bar_code_step.rb deleted file mode 100644 index eaa1135760a..00000000000 --- a/app/services/idv/steps/ipp/bar_code_step.rb +++ /dev/null @@ -1,9 +0,0 @@ -module Idv - module Steps - module Ipp - class BarCodeStep < DocAuthBaseStep - def call; end - end - end - end -end diff --git a/app/services/idv/steps/ipp/encrypt_step.rb b/app/services/idv/steps/ipp/encrypt_step.rb deleted file mode 100644 index 9237396a686..00000000000 --- a/app/services/idv/steps/ipp/encrypt_step.rb +++ /dev/null @@ -1,9 +0,0 @@ -module Idv - module Steps - module Ipp - class EncryptStep < DocAuthBaseStep - def call; end - end - end - end -end diff --git a/app/services/idv/steps/ipp/enter_info_step.rb b/app/services/idv/steps/ipp/enter_info_step.rb deleted file mode 100644 index 1beb415d0e8..00000000000 --- a/app/services/idv/steps/ipp/enter_info_step.rb +++ /dev/null @@ -1,9 +0,0 @@ -module Idv - module Steps - module Ipp - class EnterInfoStep < DocAuthBaseStep - def call; end - end - end - end -end diff --git a/app/services/idv/steps/ipp/find_usps_step.rb b/app/services/idv/steps/ipp/find_usps_step.rb deleted file mode 100644 index 84028e84bee..00000000000 --- a/app/services/idv/steps/ipp/find_usps_step.rb +++ /dev/null @@ -1,9 +0,0 @@ -module Idv - module Steps - module Ipp - class FindUspsStep < DocAuthBaseStep - def call; end - end - end - end -end diff --git a/app/services/idv/steps/ipp/usps_list_step.rb b/app/services/idv/steps/ipp/usps_list_step.rb deleted file mode 100644 index 6fa0d401c28..00000000000 --- a/app/services/idv/steps/ipp/usps_list_step.rb +++ /dev/null @@ -1,9 +0,0 @@ -module Idv - module Steps - module Ipp - class UspsListStep < DocAuthBaseStep - def call; end - end - end - end -end diff --git a/app/services/idv/steps/ipp/verify_step.rb b/app/services/idv/steps/ipp/verify_step.rb deleted file mode 100644 index 186759856ca..00000000000 --- a/app/services/idv/steps/ipp/verify_step.rb +++ /dev/null @@ -1,9 +0,0 @@ -module Idv - module Steps - module Ipp - class VerifyStep < DocAuthBaseStep - def call; end - end - end - end -end diff --git a/app/services/idv/steps/ipp/welcome_step.rb b/app/services/idv/steps/ipp/welcome_step.rb deleted file mode 100644 index 193b8e55513..00000000000 --- a/app/services/idv/steps/ipp/welcome_step.rb +++ /dev/null @@ -1,9 +0,0 @@ -module Idv - module Steps - module Ipp - class WelcomeStep < DocAuthBaseStep - def call; end - end - end - end -end diff --git a/app/views/idv/capture_doc/back_image.html.slim b/app/views/idv/capture_doc/back_image.html.slim index aa0cfab46ca..8f0d9a84435 100644 --- a/app/views/idv/capture_doc/back_image.html.slim +++ b/app/views/idv/capture_doc/back_image.html.slim @@ -10,7 +10,9 @@ h1.h3.my0 = t('doc_auth.headings.upload_back') .clearfix.mxn1 .sm-col.sm-col-8.px1.mt2 = f.input :image, label: false, as: 'file', required: true - = render 'idv/doc_auth/error_messages', flow_session: flow_session + - unless flow_session[:error_message].nil? + .alert.alert-error = flow_session[:error_message] + .alert.alert-notice == flow_session[:notice] .mb4 id= 'target' .mt2 = render 'idv/doc_auth/submit_with_spinner' diff --git a/app/views/idv/capture_doc/capture_mobile_back_image.html.slim b/app/views/idv/capture_doc/capture_mobile_back_image.html.slim index bc69021dbe1..f84d3b8a9d8 100644 --- a/app/views/idv/capture_doc/capture_mobile_back_image.html.slim +++ b/app/views/idv/capture_doc/capture_mobile_back_image.html.slim @@ -17,7 +17,9 @@ ul .sm-col.sm-col-9.px1 = f.input :image, label: false, as: 'file', required: true - = render 'idv/doc_auth/error_messages', flow_session: flow_session + - unless flow_session[:error_message].nil? + .alert.alert-error = flow_session[:error_message] + .alert.alert-notice == flow_session[:notice] div id= 'target' br diff --git a/app/views/idv/capture_doc/front_image.html.slim b/app/views/idv/capture_doc/front_image.html.slim index adee4e1938e..0858c45aa48 100644 --- a/app/views/idv/capture_doc/front_image.html.slim +++ b/app/views/idv/capture_doc/front_image.html.slim @@ -11,7 +11,9 @@ h1.h3.my0 = t('doc_auth.headings.upload_front') .sm-col.sm-col-8.px1.mt2 = f.input :image, label: false, as: 'file', required: true - = render 'idv/doc_auth/error_messages', flow_session: flow_session + - unless flow_session[:error_message].nil? + .alert.alert-error = flow_session[:error_message] + .alert.alert-notice == flow_session[:notice] .mb4 id= 'target' .mt2 diff --git a/app/views/idv/capture_doc/mobile_front_image.html.slim b/app/views/idv/capture_doc/mobile_front_image.html.slim index 5a7ee5b0626..327960ea731 100644 --- a/app/views/idv/capture_doc/mobile_front_image.html.slim +++ b/app/views/idv/capture_doc/mobile_front_image.html.slim @@ -17,7 +17,9 @@ ul .sm-col.sm-col-8.px1 = f.input :image, label: false, as: 'file', required: true - = render 'idv/doc_auth/error_messages', flow_session: flow_session + - unless flow_session[:error_message].nil? + .alert.alert-error = flow_session[:error_message] + .alert.alert-notice == flow_session[:notice] div id= 'target' br diff --git a/app/views/idv/doc_auth/_error_messages.html.slim b/app/views/idv/doc_auth/_error_messages.html.slim deleted file mode 100644 index 13fa7c36a22..00000000000 --- a/app/views/idv/doc_auth/_error_messages.html.slim +++ /dev/null @@ -1,5 +0,0 @@ -- unless flow_session[:error_message].nil? - .alert.alert-error - = flow_session[:error_message] - = render 'idv/doc_auth/in_person_proofing_option' - .alert.alert-notice == flow_session[:notice] diff --git a/app/views/idv/doc_auth/_in_person_proofing_option.html.slim b/app/views/idv/doc_auth/_in_person_proofing_option.html.slim deleted file mode 100644 index 274cc39c91c..00000000000 --- a/app/views/idv/doc_auth/_in_person_proofing_option.html.slim +++ /dev/null @@ -1,3 +0,0 @@ -- if FeatureManagement.in_person_proofing_enabled? - br - = link_to t('in_person_proofing.opt_in_link'), idv_in_person_step_path(:welcome) diff --git a/app/views/idv/doc_auth/back_image.html.slim b/app/views/idv/doc_auth/back_image.html.slim index 3871bb9d00f..a54039995c2 100644 --- a/app/views/idv/doc_auth/back_image.html.slim +++ b/app/views/idv/doc_auth/back_image.html.slim @@ -11,7 +11,9 @@ h1.h3.my0 = t('doc_auth.headings.upload_back') .sm-col.sm-col-8.px1.mt2 = f.input :image, label: false, as: 'file', required: true - = render 'idv/doc_auth/error_messages', flow_session: flow_session + - unless flow_session[:error_message].nil? + .alert.alert-error = flow_session[:error_message] + .alert.alert-notice == flow_session[:notice] .mb4 id= 'target' .mt2 = render 'idv/doc_auth/submit_with_spinner' diff --git a/app/views/idv/doc_auth/front_image.html.slim b/app/views/idv/doc_auth/front_image.html.slim index 0f705d9b75b..8d817c95ccd 100644 --- a/app/views/idv/doc_auth/front_image.html.slim +++ b/app/views/idv/doc_auth/front_image.html.slim @@ -10,7 +10,9 @@ h1.h3.my0 = t('doc_auth.headings.upload_front') .clearfix.mxn1 .sm-col.sm-col-8.px1.mt2 = f.input :image, label: false, as: 'file', required: true - = render 'idv/doc_auth/error_messages', flow_session: flow_session + - unless flow_session[:error_message].nil? + .alert.alert-error = flow_session[:error_message] + .alert.alert-notice == flow_session[:notice] .mb4 id= 'target' .mt2 = render 'idv/doc_auth/submit_with_spinner' diff --git a/app/views/idv/doc_auth/mobile_back_image.html.slim b/app/views/idv/doc_auth/mobile_back_image.html.slim index 16f40c0dc03..bb2144cfc6c 100644 --- a/app/views/idv/doc_auth/mobile_back_image.html.slim +++ b/app/views/idv/doc_auth/mobile_back_image.html.slim @@ -16,7 +16,9 @@ ul .clearfix.mxn1 .sm-col.sm-col-9.px1 = f.input :image, label: false, as: 'file', required: true - = render 'idv/doc_auth/error_messages', flow_session: flow_session + - unless flow_session[:error_message].nil? + .alert.alert-error = flow_session[:error_message] + .alert.alert-notice == flow_session[:notice] div id= 'target' br diff --git a/app/views/idv/doc_auth/mobile_front_image.html.slim b/app/views/idv/doc_auth/mobile_front_image.html.slim index 5d7fc9c7a60..5a582331afc 100644 --- a/app/views/idv/doc_auth/mobile_front_image.html.slim +++ b/app/views/idv/doc_auth/mobile_front_image.html.slim @@ -16,7 +16,9 @@ ul .clearfix.mxn1 .sm-col.sm-col-8.px1 = f.input :image, label: false, as: 'file', required: true - = render 'idv/doc_auth/error_messages', flow_session: flow_session + - unless flow_session[:error_message].nil? + .alert.alert-error = flow_session[:error_message] + .alert.alert-notice == flow_session[:notice] div id= 'target' br .mt0 diff --git a/app/views/idv/in_person/_start_over_or_cancel.html.slim b/app/views/idv/in_person/_start_over_or_cancel.html.slim deleted file mode 100644 index 01a552e89cc..00000000000 --- a/app/views/idv/in_person/_start_over_or_cancel.html.slim +++ /dev/null @@ -1,4 +0,0 @@ -br -= button_to(t('doc_auth.buttons.start_over'), idv_in_person_step_path(:reset), method: :put, - class: 'btn btn-link', form_class: 'inline-block') -= render 'shared/cancel', link: idv_cancel_path diff --git a/app/views/idv/in_person/bar_code.html.slim b/app/views/idv/in_person/bar_code.html.slim deleted file mode 100644 index 183cc25d389..00000000000 --- a/app/views/idv/in_person/bar_code.html.slim +++ /dev/null @@ -1,42 +0,0 @@ -- title t('forms.backup_code.title') - -h5.my1.caps.bold.accent-blue = t('in_person_proofing.step', step: 3) -br -h1.h3.my0 = t('in_person_proofing.headings.enrollment_form') -p.mt-tiny.mb3 == t('in_person_proofing.info.enrollment_form') -.mb4 - fieldset.m0.p0.rounded-xl - ul.list-reset - li.px-12p.mb1.border-none.mt1.m2 - .inline-block.h1.bold = t('in_person_proofing.enrollment_form') - .h5.mt0.mb0.pt1.pb2.fs-12p - = t('users.backup_code.generated_on_html', - date: content_tag(:strong, I18n.l(Time.zone.today, format: '%B %d, %Y'))) - .inline-block = t('in_person_proofing.instructions.enrollment_form') - br - br - = 'ROSSLYN POST OFFICE' - br - = '1101 WILSON BLVD STE 1 ARLINGTON, VA 22209-9998' - li.mb0.border-top - .alert-inline.bold.border-bottom - = t('in_person_proofing.warning.enrollment_form') - table.pl4.pr3.monospace - tr - td.center - = image_tag(asset_url('idv/bar_code.png'), - alt: t('doc_auth.headings.upload_back'), height: 140) - br - br - .center.mt1 - = link_to t('forms.backup_code.download'), backup_code_download_path, - class: 'text-decoration-none ico btn-border ico-download' - = link_to t('forms.backup_code.print'), '#', - data: { print: true }, - class: 'ico ico-print btn-border ml2 text-decoration-none' - -= link_to t('forms.buttons.continue'), account_path, class: 'btn btn-primary btn-wide' -br -= render 'idv/in_person/start_over_or_cancel' - -== javascript_pack_tag 'clipboard' diff --git a/app/views/idv/in_person/encrypt.html.slim b/app/views/idv/in_person/encrypt.html.slim deleted file mode 100644 index 9d397d9a9c8..00000000000 --- a/app/views/idv/in_person/encrypt.html.slim +++ /dev/null @@ -1,17 +0,0 @@ -- title t('idv.titles.review') - -h5.my1.caps.bold.accent-blue = t('in_person_proofing.step', step: 2) -br -h1.h3 = 'Re-enter your login.gov password to protect your information' - -p = t('in_person_proofing.instructions.encrypt') - -= simple_form_for(:in_person_proofing, url: url_for, method: 'PUT', - html: { autocomplete: 'off', method: :put, role: 'form' }) do |f| - = f.input :password, label: t('idv.form.password'), required: true - .right-align.mtn2.mb4 = t('idv.forgot_password.link_html', - link: link_to(t('idv.forgot_password.link_text'), idv_forgot_password_url, - class: 'btn btn-link ml1', form_class: 'inline-block')) - = f.button :submit, t('forms.buttons.continue'), class: 'btn btn-primary btn-wide sm-col-6 col-12' - -= render 'idv/in_person/start_over_or_cancel' diff --git a/app/views/idv/in_person/enter_info.html.erb b/app/views/idv/in_person/enter_info.html.erb deleted file mode 100644 index 71c4444f931..00000000000 --- a/app/views/idv/in_person/enter_info.html.erb +++ /dev/null @@ -1,144 +0,0 @@ -
<%= t('in_person_proofing.step', step: 2) %>
-

<%= t('in_person_proofing.headings.enter_info') %>

- -<%= simple_form_for(:in_person_proofing, url: url_for, method: 'PUT', - html: { autocomplete: 'off', method: :put, role: 'form' }) do |f| %> -
-
- - -
-
- - -
-
-
-
- -
example: 01/17/1964
- -
-
-
-
-
-
- - -
-
-
-
-
-
- - -
-
- - -
-
- - -
-
-
-
- -
-
-
-
- - -
-
-
-
-
- -
-<% end %> - -<%= render 'idv/in_person/start_over_or_cancel' %> diff --git a/app/views/idv/in_person/find_usps.html.slim b/app/views/idv/in_person/find_usps.html.slim deleted file mode 100644 index 510fb428805..00000000000 --- a/app/views/idv/in_person/find_usps.html.slim +++ /dev/null @@ -1,22 +0,0 @@ --title t('in_person_proofing.titles.in_person_proofing') - -h5.my1.caps.bold.accent-blue = t('in_person_proofing.step', step: 1) -br -h1.h3.my0 = t('in_person_proofing.headings.zip_code') - -= simple_form_for(:in_person, url: url_for, method: 'PUT', - html: { autocomplete: 'off', role: 'form', class: 'mt2' }) do |f| - .clearfix.mxn1 - .sm-col.sm-col-6.px1.mt2 - = f.input :zip_code, - label: t('in_person_proofing.forms.zip_code'), required: true, - pattern: '^\d{5}$', - input_html: { class: 'zip_code', value: '' } - - p = flow_session[:error_message] - - .mt0 - button type='submit' class='btn btn-primary btn-wide sm-col-6 col-12' - = t('forms.buttons.continue') - -= render 'idv/in_person/start_over_or_cancel' diff --git a/app/views/idv/in_person/usps_list.html.erb b/app/views/idv/in_person/usps_list.html.erb deleted file mode 100644 index 9ae4303c0c5..00000000000 --- a/app/views/idv/in_person/usps_list.html.erb +++ /dev/null @@ -1,62 +0,0 @@ -
<%= t('in_person_proofing.step', step: 1) %>
-

<%= t('in_person_proofing.headings.usps_list') %>

- -<%= simple_form_for(:in_person_proofing, url: url_for, method: 'PUT', - html: { autocomplete: 'off', method: :put, role: 'form' }) do |f| %> -
-
- Choose a post office near you: - - - - - -
-
- -
- -
-<% end %> - -<%= render 'idv/in_person/start_over_or_cancel' %> diff --git a/app/views/idv/in_person/verify.html.slim b/app/views/idv/in_person/verify.html.slim deleted file mode 100644 index fc88f3e13a2..00000000000 --- a/app/views/idv/in_person/verify.html.slim +++ /dev/null @@ -1,25 +0,0 @@ --title t('in_person_proofing.titles.in_person_proofing') - -h5.my1.caps.bold.accent-blue = t('in_person_proofing.step', step: 2) -br -h1.h3.my0 = 'Verify your information' - -.mt3.mb2 - .right = link_to(t('in_person_proofing.buttons.change_address'), idv_address_url) - div = "#{t('in_person_proofing.forms.first_name')}: Jane" - div = "#{t('in_person_proofing.forms.last_name')}: Doe" - div = "#{t('in_person_proofing.forms.dob')}: 11/1/1911" - hr - .right = link_to(t('in_person_proofing.buttons.change_address'), idv_address_url) - div = "#{t('in_person_proofing.forms.address1')}: 1 Fake Street" - div = "#{t('in_person_proofing.forms.city')}: Faketown" - div = "#{t('in_person_proofing.forms.state')}: NY" - div = "#{t('in_person_proofing.forms.zip_code')}: 11364" - hr - .right = button_to(t('in_person_proofing.buttons.change_ssn'), - idv_doc_auth_step_path(step: :redo_ssn), method: :put, class: 'btn btn-link') - = "#{t('in_person_proofing.forms.ssn')}: 111-11-1111" - .mt4 = button_to(t('forms.buttons.continue'), url_for, method: :put, - class: 'btn btn-primary btn-wide sm-col-6 col-12') - -= render 'idv/in_person/start_over_or_cancel' diff --git a/app/views/idv/in_person/welcome.html.slim b/app/views/idv/in_person/welcome.html.slim deleted file mode 100644 index 6b863f12f0c..00000000000 --- a/app/views/idv/in_person/welcome.html.slim +++ /dev/null @@ -1,49 +0,0 @@ -h1.h3.my0 = t('in_person_proofing.headings.welcome') -p.mt-tiny.mb3 = t('in_person_proofing.info.welcome') -h1.h3.mb2 = t('in_person_proofing.instructions.welcome') -ul.list-reset - li.pt2.pb1 - .inline-block.mr2.mt1.align-top.circle.circle-number.bg-blue.white - | 1 - .mr1.inline-block - .h1.inline-block.bold = t('in_person_proofing.instructions.bullet1') - br - = t('in_person_proofing.instructions.text1') - li.pt2.pb1 - .inline-block.mr2.mt1.align-top.circle.circle-number.bg-blue.white - | 2 - .mr1.inline-block - .h1.inline-block.bold = t('in_person_proofing.instructions.bullet2') - br - = t('in_person_proofing.instructions.text2') - li.pt2.pb1 - .inline-block.mr2.mt1.align-top.circle.circle-number.bg-blue.white - | 3 - .mr1.inline-block - .h1.inline-block.bold = t('in_person_proofing.instructions.bullet3') - br - = t('in_person_proofing.instructions.text3') - li.pt2.pb1 - .inline-block.mr2.mt1.align-top.circle.circle-number.bg-blue.white - | 4 - .mr1.inline-block - .h1.inline-block.bold = t('in_person_proofing.instructions.bullet4') - br - = t('in_person_proofing.instructions.text4') - li.pt2.pb1 - .inline-block.mr2.mt1.align-top.circle.circle-number.bg-blue.white - | 5 - .mr1.inline-block - .h1.inline-block.bold = t('in_person_proofing.instructions.bullet5') - br - = t('in_person_proofing.instructions.text5') -= simple_form_for(:in_person_proofing, url: url_for, method: 'PUT', - html: { autocomplete: 'off', role: 'form', class: 'mt2' }) do - br - .mt0 - button type='submit' class='btn btn-primary btn-wide sm-col-6 col-6' - = t('in_person_proofing.buttons.get_started') -br - -.mt2.pt1.border-top - = link_to cancel_link_text, account_path, class: 'h5' diff --git a/app/views/idv/shared/verification_failure.html.slim b/app/views/idv/shared/verification_failure.html.slim index c600c68726a..3855b78af71 100644 --- a/app/views/idv/shared/verification_failure.html.slim +++ b/app/views/idv/shared/verification_failure.html.slim @@ -5,5 +5,3 @@ p == presenter.warning_message .mt3 = link_to presenter.button_text, presenter.button_path, class: 'btn btn-primary btn-link' - -= render 'idv/doc_auth/in_person_proofing_option' diff --git a/config/locales/in_person_proofing/en.yml b/config/locales/in_person_proofing/en.yml deleted file mode 100644 index 4417aab55b2..00000000000 --- a/config/locales/in_person_proofing/en.yml +++ /dev/null @@ -1,51 +0,0 @@ ---- -en: - in_person_proofing: - buttons: - change_address: change - change_ssn: change - get_started: Get started - enrollment_form: Enrollment form - forms: - address1: Address - address2: Address (optional) - city: City - dob: Date of birth - first_name: First name - last_name: Last Name - ssn: Social security number - state: State - zip_code: Zip code - headings: - enrollment_form: Bring this form to your post office - enter_info: Enter in your information - usps_list: Choose a post office - welcome: Verify your identity in person - zip_code: Find a post office - info: - enrollment_form: Please print or save this form and take it to the post office - you chose. - welcome: We can verify your identity at your local post office. - instructions: - bullet1: Choose a nearby post office - bullet2: Enter your information - bullet3: Print or save your enrollment form - bullet4: Visit the post office to get verified - bullet5: Come back to login.gov - encrypt: When you re-enter your password, login.gov will encrypt your information - to make sure no one else can access it. - enrollment_form: 'Bring this code to the following post office along with a - government-issued ID:' - text1: by entering your ZIP code - text2: name, date of birth, address, and social security number - text3: a bar code that you need to take to the post office with you - text4: bring your enrollment code and a government-issued ID - text5: sign in and finish the process - welcome: 'What you''ll need to do:' - opt_in_link: Verify your identity in person at a local post office instead - step: Verify your identity in person - Step %{step} of 5 - titles: - in_person_proofing: Verify your identity in person - warning: - enrollment_form: Download, print, or save your enrollment form. A copy has - also been sent to your email. diff --git a/config/locales/in_person_proofing/es.yml b/config/locales/in_person_proofing/es.yml deleted file mode 100644 index fc58a30ef0b..00000000000 --- a/config/locales/in_person_proofing/es.yml +++ /dev/null @@ -1,51 +0,0 @@ ---- -es: - in_person_proofing: - buttons: - change_address: change - change_ssn: change - get_started: Get started - enrollment_form: Enrollment form - forms: - address1: Address - address2: Address (optional) - city: City - dob: Date of birth - first_name: First name - last_name: Last Name - ssn: Social security number - state: State - zip_code: Zip code - headings: - enrollment_form: Bring this form to your post office - enter_info: Enter in your information - usps_list: Choose a post office - welcome: Verify your identity in person - zip_code: Find a post office - info: - enrollment_form: Please print or save this form and take it to the post office - you chose. - welcome: We can verify your identity at your local post office. - instructions: - bullet1: Choose a nearby post office - bullet2: Enter your information - bullet3: Print or save your enrollment form - bullet4: Visit the post office to get verified - bullet5: Come back to login.gov - encrypt: When you re-enter your password, login.gov will encrypt your information - to make sure no one else can access it. - enrollment_form: 'Bring this code to the following post office along with a - government-issued ID:' - text1: by entering your ZIP code - text2: name, date of birth, address, and social security number - text3: a bar code that you need to take to the post office with you - text4: bring your enrollment code and a government-issued ID - text5: sign in and finish the process - welcome: 'What you''ll need to do:' - opt_in_link: Verify your identity in person at a local post office instead - step: Verify your identity in person - Step %{step} of 5 - titles: - in_person_proofing: Verify your identity in person - warning: - enrollment_form: Download, print, or save your enrollment form. A copy has - also been sent to your email. diff --git a/config/locales/in_person_proofing/fr.yml b/config/locales/in_person_proofing/fr.yml deleted file mode 100644 index 1032eae98df..00000000000 --- a/config/locales/in_person_proofing/fr.yml +++ /dev/null @@ -1,51 +0,0 @@ ---- -fr: - in_person_proofing: - buttons: - change_address: change - change_ssn: change - get_started: Get started - enrollment_form: Enrollment form - forms: - address1: Address - address2: Address (optional) - city: City - dob: Date of birth - first_name: First name - last_name: Last Name - ssn: Social security number - state: State - zip_code: Zip code - headings: - enrollment_form: Bring this form to your post office - enter_info: Enter in your information - usps_list: Choose a post office - welcome: Verify your identity in person - zip_code: Find a post office - info: - enrollment_form: Please print or save this form and take it to the post office - you chose. - welcome: We can verify your identity at your local post office. - instructions: - bullet1: Choose a nearby post office - bullet2: Enter your information - bullet3: Print or save your enrollment form - bullet4: Visit the post office to get verified - bullet5: Come back to login.gov - encrypt: When you re-enter your password, login.gov will encrypt your information - to make sure no one else can access it. - enrollment_form: 'Bring this code to the following post office along with a - government-issued ID:' - text1: by entering your ZIP code - text2: name, date of birth, address, and social security number - text3: a bar code that you need to take to the post office with you - text4: bring your enrollment code and a government-issued ID - text5: sign in and finish the process - welcome: 'What you''ll need to do:' - opt_in_link: Verify your identity in person at a local post office instead - step: Verify your identity in person - Step %{step} of 5 - titles: - in_person_proofing: Verify your identity in person - warning: - enrollment_form: Download, print, or save your enrollment form. A copy has - also been sent to your email. diff --git a/config/routes.rb b/config/routes.rb index ced00245378..db7f83d9f9c 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -250,11 +250,6 @@ get '/recovery/:step' => 'recovery#show', as: :recovery_step put '/recovery/:step' => 'recovery#update' end - if FeatureManagement.in_person_proofing_enabled? - get '/in_person' => 'in_person#index' - get '/in_person/:step' => 'in_person#show', as: :in_person_step - put '/in_person/:step' => 'in_person#update' - end end end diff --git a/lib/feature_management.rb b/lib/feature_management.rb index 432cb2960e0..24238bea317 100644 --- a/lib/feature_management.rb +++ b/lib/feature_management.rb @@ -117,8 +117,4 @@ def self.allow_doc_auth_test_credentials? def self.backup_codes_as_only_2fa? Figaro.env.backup_codes_as_only_2fa == 'true' end - - def self.in_person_proofing_enabled? - Figaro.env.in_person_proofing_enabled == 'true' - end end diff --git a/spec/features/idv/doc_auth/front_image_step_spec.rb b/spec/features/idv/doc_auth/front_image_step_spec.rb index ce12ef99bd9..1ed7c98b400 100644 --- a/spec/features/idv/doc_auth/front_image_step_spec.rb +++ b/spec/features/idv/doc_auth/front_image_step_spec.rb @@ -4,7 +4,6 @@ feature 'doc auth front image step' do include IdvStepHelper include DocAuthHelper - include InPersonHelper let(:user) { user_with_2fa } let(:max_attempts) { Figaro.env.acuant_max_attempts.to_i } @@ -35,20 +34,6 @@ expect(page).to have_current_path(idv_doc_auth_front_image_step) end - it 'offers in person option on failure' do - enable_in_person_proofing - - expect(page).to_not have_link(t('in_person_proofing.opt_in_link'), - href: idv_in_person_welcome_step) - - mock_assure_id_fail - attach_image - click_idv_continue - - expect(page).to have_link(t('in_person_proofing.opt_in_link'), - href: idv_in_person_welcome_step) - end - it 'throttles calls to acuant and allows retry after the attempt window' do allow(Figaro.env).to receive(:acuant_max_attempts).and_return(max_attempts) max_attempts.times do diff --git a/spec/features/idv/doc_auth/verify_step_spec.rb b/spec/features/idv/doc_auth/verify_step_spec.rb index d9912de94bf..edab402fe19 100644 --- a/spec/features/idv/doc_auth/verify_step_spec.rb +++ b/spec/features/idv/doc_auth/verify_step_spec.rb @@ -3,7 +3,6 @@ feature 'doc auth verify step' do include IdvStepHelper include DocAuthHelper - include InPersonHelper let(:max_attempts) { Idv::Attempter.idv_max_attempts } before do @@ -49,21 +48,7 @@ click_idv_continue click_idv_continue - enable_in_person_proofing expect(page).to have_current_path(idv_session_failure_path(reason: :warning)) - expect(page).to_not have_link(t('in_person_proofing.opt_in_link'), - href: idv_in_person_welcome_step) - end - - it 'has a link to proof in person' do - enable_in_person_proofing - complete_doc_auth_steps_before_ssn_step - fill_out_ssn_form_with_duplicate_ssn - click_idv_continue - click_idv_continue - - expect(page).to have_link(t('in_person_proofing.opt_in_link'), - href: idv_in_person_welcome_step) end it 'throttles resolution' do diff --git a/spec/features/idv/in_person/bar_code_step_spec.rb b/spec/features/idv/in_person/bar_code_step_spec.rb deleted file mode 100644 index 1710eacf354..00000000000 --- a/spec/features/idv/in_person/bar_code_step_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -require 'rails_helper' - -feature 'in person find usps step' do - include InPersonHelper - - before do - enable_in_person_proofing - sign_in_and_2fa_user - complete_in_person_steps_before_bar_code_step - end - - it 'is on the correct page' do - expect(page).to have_current_path(idv_in_person_bar_code_step) - end - - it 'proceeds to the next step' do - click_link t('forms.buttons.continue') - - expect(page).to have_current_path(account_path) - end -end diff --git a/spec/features/idv/in_person/encrypt_step_spec.rb b/spec/features/idv/in_person/encrypt_step_spec.rb deleted file mode 100644 index fba3829e7b9..00000000000 --- a/spec/features/idv/in_person/encrypt_step_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -require 'rails_helper' - -feature 'in person encrypt step' do - include InPersonHelper - - before do - enable_in_person_proofing - sign_in_and_2fa_user - complete_in_person_steps_before_encrypt_step - end - - it 'is on the correct page' do - expect(page).to have_current_path(idv_in_person_encrypt_step) - end - - it 'proceeds to the next step' do - click_continue - - expect(page).to have_current_path(idv_in_person_bar_code_step) - end -end diff --git a/spec/features/idv/in_person/enter_info_step_spec.rb b/spec/features/idv/in_person/enter_info_step_spec.rb deleted file mode 100644 index f85ffeddf6f..00000000000 --- a/spec/features/idv/in_person/enter_info_step_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -require 'rails_helper' - -feature 'in person enter info step' do - include InPersonHelper - - before do - enable_in_person_proofing - sign_in_and_2fa_user - complete_in_person_steps_before_enter_info_step - end - - it 'is on the correct page' do - expect(page).to have_current_path(idv_in_person_enter_info_step) - end - - it 'proceeds to the next page' do - click_continue - - expect(page).to have_current_path(idv_in_person_verify_step) - end -end diff --git a/spec/features/idv/in_person/find_usps_step_spec.rb b/spec/features/idv/in_person/find_usps_step_spec.rb deleted file mode 100644 index 133e698b866..00000000000 --- a/spec/features/idv/in_person/find_usps_step_spec.rb +++ /dev/null @@ -1,22 +0,0 @@ -require 'rails_helper' - -feature 'in person find usps step' do - include InPersonHelper - - before do - enable_in_person_proofing - sign_in_and_2fa_user - complete_in_person_steps_before_find_usps_step - end - - it 'is on the correct page' do - expect(page).to have_current_path(idv_in_person_find_usps_step) - end - - it 'proceeds to next page with a zip code' do - fill_in :in_person_zip_code, with: Faker::Address.zip_code - click_continue - - expect(page).to have_current_path(idv_in_person_usps_list_step) - end -end diff --git a/spec/features/idv/in_person/usps_list_step_spec.rb b/spec/features/idv/in_person/usps_list_step_spec.rb deleted file mode 100644 index c204eb0ab8b..00000000000 --- a/spec/features/idv/in_person/usps_list_step_spec.rb +++ /dev/null @@ -1,20 +0,0 @@ -require 'rails_helper' - -feature 'in person usps list step' do - include InPersonHelper - - before do - enable_in_person_proofing - sign_in_and_2fa_user - complete_in_person_steps_before_usps_list_step - end - - it 'is on the correct page' do - expect(page).to have_current_path(idv_in_person_usps_list_step) - end - - it 'proceeds to the next page' do - click_continue - expect(page).to have_current_path(idv_in_person_enter_info_step) - end -end diff --git a/spec/features/idv/in_person/verify_step_spec.rb b/spec/features/idv/in_person/verify_step_spec.rb deleted file mode 100644 index 7d7c42133b7..00000000000 --- a/spec/features/idv/in_person/verify_step_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -require 'rails_helper' - -feature 'in person verify info step' do - include InPersonHelper - - before do - enable_in_person_proofing - sign_in_and_2fa_user - complete_in_person_steps_before_verify_step - end - - it 'is on the correct page' do - expect(page).to have_current_path(idv_in_person_verify_step) - end - - it 'proceeds to the next page' do - click_continue - - expect(page).to have_current_path(idv_in_person_encrypt_step) - end -end diff --git a/spec/features/idv/in_person/welcome_step_spec.rb b/spec/features/idv/in_person/welcome_step_spec.rb deleted file mode 100644 index 0587e4a3e5e..00000000000 --- a/spec/features/idv/in_person/welcome_step_spec.rb +++ /dev/null @@ -1,15 +0,0 @@ -require 'rails_helper' - -feature 'in person welcome step' do - include InPersonHelper - - before do - enable_in_person_proofing - sign_in_and_2fa_user - complete_in_person_steps_before_welcome_step - end - - it 'is on the correct page' do - expect(page).to have_current_path(idv_in_person_welcome_step) - end -end diff --git a/spec/support/features/in_person_helper.rb b/spec/support/features/in_person_helper.rb deleted file mode 100644 index c9875179006..00000000000 --- a/spec/support/features/in_person_helper.rb +++ /dev/null @@ -1,68 +0,0 @@ -module InPersonHelper - def idv_in_person_welcome_step - idv_in_person_step_path(step: :welcome) - end - - def idv_in_person_find_usps_step - idv_in_person_step_path(step: :find_usps) - end - - def idv_in_person_usps_list_step - idv_in_person_step_path(step: :usps_list) - end - - def idv_in_person_enter_info_step - idv_in_person_step_path(step: :enter_info) - end - - def idv_in_person_verify_step - idv_in_person_step_path(step: :verify) - end - - def idv_in_person_encrypt_step - idv_in_person_step_path(step: :encrypt) - end - - def idv_in_person_bar_code_step - idv_in_person_step_path(step: :bar_code) - end - - def enable_in_person_proofing - allow(Figaro.env).to receive(:in_person_proofing_enabled).and_return('true') - Rails.application.reload_routes! - end - - def complete_in_person_steps_before_welcome_step - visit idv_in_person_welcome_step - end - - def complete_in_person_steps_before_find_usps_step - complete_in_person_steps_before_welcome_step - click_on t('doc_auth.buttons.get_started') - end - - def complete_in_person_steps_before_usps_list_step - complete_in_person_steps_before_find_usps_step - click_continue - end - - def complete_in_person_steps_before_enter_info_step - complete_in_person_steps_before_usps_list_step - click_continue - end - - def complete_in_person_steps_before_verify_step - complete_in_person_steps_before_enter_info_step - click_continue - end - - def complete_in_person_steps_before_encrypt_step - complete_in_person_steps_before_verify_step - click_continue - end - - def complete_in_person_steps_before_bar_code_step - complete_in_person_steps_before_encrypt_step - click_continue - end -end