diff --git a/app/controllers/idv/document_capture_controller.rb b/app/controllers/idv/document_capture_controller.rb index 207630bda73..99ff49e8da4 100644 --- a/app/controllers/idv/document_capture_controller.rb +++ b/app/controllers/idv/document_capture_controller.rb @@ -63,6 +63,7 @@ def self.step_info idv_session.flow_path == 'standard' && ( # mobile idv_session.skip_hybrid_handoff || + idv_session.skip_doc_auth || !idv_session.selfie_check_required || # desktop but selfie not required idv_session.desktop_selfie_test_mode_enabled? ) diff --git a/app/controllers/idv/hybrid_handoff_controller.rb b/app/controllers/idv/hybrid_handoff_controller.rb index c50eae4f74d..829ff2abe7c 100644 --- a/app/controllers/idv/hybrid_handoff_controller.rb +++ b/app/controllers/idv/hybrid_handoff_controller.rb @@ -13,6 +13,8 @@ def show @upload_disabled = idv_session.selfie_check_required && !idv_session.desktop_selfie_test_mode_enabled? + @selfie_required = idv_session.selfie_check_required + analytics.idv_doc_auth_hybrid_handoff_visited(**analytics_arguments) Funnel::DocAuth::RegisterStep.new(current_user.id, sp_session[:issuer]).call( diff --git a/app/views/idv/hybrid_handoff/show.html.erb b/app/views/idv/hybrid_handoff/show.html.erb index fe09cd82f04..a7164548357 100644 --- a/app/views/idv/hybrid_handoff/show.html.erb +++ b/app/views/idv/hybrid_handoff/show.html.erb @@ -8,16 +8,56 @@ class: 'margin-x-neg-2 margin-top-neg-4 tablet:margin-x-neg-6 tablet:margin-top-neg-4', ) %> <% end %> +<%# ============== Non Selfie Section ========== %> +<% if !@selfie_required %> -<%= render PageHeadingComponent.new do %> - <%= t('doc_auth.headings.hybrid_handoff') %> -<% end %> + <%= render PageHeadingComponent.new do %> + <%= t('doc_auth.headings.hybrid_handoff') %> + <% end %> -
- <%= t('doc_auth.info.hybrid_handoff') %> -
++ <%= t('doc_auth.info.hybrid_handoff') %> +
-