Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
54cc387
LG-9531: Change title separate from dash to bar (#8371)
aduth May 10, 2023
3a572d8
LG-9295: Rate limit for “Verify your information” must include a link…
matthinz May 10, 2023
cc765c1
re-add the secondary id instructions (#8376)
May 10, 2023
803eb17
LG-9710: Add hidden field to associate password with email (#8372)
aduth May 11, 2023
b25c270
changelog: Internal, Authentication, Add logging for Additional phone…
mdiarra3 May 11, 2023
c58e368
LG-9561: Limit requesting new GPO codes to 30 days after initial requ…
matthinz May 11, 2023
ea6cf0d
LG-8115: configure the PhoneFinder proofer for HMAC auth (#8380)
solipet May 11, 2023
5983c8c
LG-9524: log residential address resolution in ipp proofing event. (#…
dawei-nava May 11, 2023
981a84e
LG-9611 Remove async document capture code (#8377)
soniaconnolly May 11, 2023
cb70af0
build-sass: Add support for ".scss" extension (#8385)
aduth May 12, 2023
6676459
LG-9570 Remove LinkSentController 404 action (#8383)
amirbey May 12, 2023
5bd9900
LG-9477 log nontransliterable chars (#8379)
svalexander May 12, 2023
d73f80f
LG-9298 Warning screen for “Verify your information” should include a…
amirbey May 12, 2023
cf80818
LG-9741 Confirm no pending GPO or in person enrollment before actions…
soniaconnolly May 15, 2023
46ccb44
LG-9535 Read from new gpo column (#8381)
theabrad May 15, 2023
84ae211
LG-9828:Warning screen for “Verify your information (#8388)
amirbey May 15, 2023
b955fd7
LG-9369 Fix new link_sent page back link (#8390)
soniaconnolly May 15, 2023
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
3 changes: 2 additions & 1 deletion .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"extends": "@18f/identity-stylelint-config"
"extends": "@18f/identity-stylelint-config",
"ignoreFiles": "**/fixtures/**/*"
}
25 changes: 0 additions & 25 deletions app/controllers/api/verify/base_controller.rb

This file was deleted.

88 changes: 0 additions & 88 deletions app/controllers/api/verify/document_capture_controller.rb

This file was deleted.

27 changes: 0 additions & 27 deletions app/controllers/api/verify/document_capture_errors_controller.rb

This file was deleted.

11 changes: 11 additions & 0 deletions app/controllers/concerns/idv_step_concern.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,17 @@ module IdvStepConcern
included do
before_action :confirm_two_factor_authenticated
before_action :confirm_idv_needed
before_action :confirm_no_pending_gpo_profile
before_action :confirm_no_pending_in_person_enrollment
end

def confirm_no_pending_gpo_profile
redirect_to idv_gpo_verify_url if current_user.pending_profile_requires_verification?
end

def confirm_no_pending_in_person_enrollment
return if !IdentityConfig.store.in_person_proofing_enabled
redirect_to idv_in_person_ready_to_verify_url if current_user.pending_in_person_enrollment
end

def flow_session
Expand Down
11 changes: 0 additions & 11 deletions app/controllers/idv/document_capture_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,22 +36,11 @@ def update
end

def extra_view_variables
url_builder = ImageUploadPresignedUrlGenerator.new

{
document_capture_session_uuid: flow_session[:document_capture_session_uuid],
flow_path: 'standard',
sp_name: decorated_session.sp_name,
failure_to_proof_url: return_to_sp_failure_to_proof_url(step: 'document_capture'),

front_image_upload_url: url_builder.presigned_image_upload_url(
image_type: 'front',
transaction_id: flow_session[:document_capture_session_uuid],
),
back_image_upload_url: url_builder.presigned_image_upload_url(
image_type: 'back',
transaction_id: flow_session[:document_capture_session_uuid],
),
}.merge(
acuant_sdk_upgrade_a_b_testing_variables,
in_person_cta_variant_testing_variables,
Expand Down
5 changes: 5 additions & 0 deletions app/controllers/idv/gpo_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ class GpoController < ApplicationController
before_action :confirm_idv_needed
before_action :confirm_user_completed_idv_profile_step
before_action :confirm_mail_not_spammed
before_action :confirm_profile_not_too_old

def index
@presenter = GpoPresenter.new(current_user, url_options)
Expand Down Expand Up @@ -38,6 +39,10 @@ def gpo_mail_service

private

def confirm_profile_not_too_old
redirect_to idv_path if gpo_mail_service.profile_too_old?
end

def step_indicator_current_step
if resend_requested?
:get_a_letter
Expand Down
6 changes: 5 additions & 1 deletion app/controllers/idv/gpo_verify_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,14 @@ class GpoVerifyController < ApplicationController
def index
analytics.idv_gpo_verification_visited
gpo_mail = Idv::GpoMail.new(current_user)
@mail_spammed = gpo_mail.mail_spammed?
@gpo_verify_form = GpoVerifyForm.new(user: current_user, pii: pii)
@code = session[:last_gpo_confirmation_code] if FeatureManagement.reveal_gpo_code?

@user_can_request_another_gpo_code =
FeatureManagement.gpo_verification_enabled? &&
!gpo_mail.mail_spammed? &&
!gpo_mail.profile_too_old?

if throttle.throttled?
render_throttled
else
Expand Down
10 changes: 0 additions & 10 deletions app/controllers/idv/hybrid_mobile/document_capture_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,20 +36,10 @@ def update
end

def extra_view_variables
url_builder = ImageUploadPresignedUrlGenerator.new

{
flow_path: 'hybrid',
document_capture_session_uuid: document_capture_session_uuid,
failure_to_proof_url: return_to_sp_failure_to_proof_url(step: 'document_capture'),
front_image_upload_url: url_builder.presigned_image_upload_url(
image_type: 'front',
transaction_id: document_capture_session_uuid,
),
back_image_upload_url: url_builder.presigned_image_upload_url(
image_type: 'back',
transaction_id: document_capture_session_uuid,
),
}.merge(
native_camera_ab_testing_variables,
acuant_sdk_upgrade_a_b_testing_variables,
Expand Down
5 changes: 0 additions & 5 deletions app/controllers/idv/link_sent_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ class LinkSentController < ApplicationController
include StepIndicatorConcern
include StepUtilitiesConcern

before_action :render_404_if_link_sent_controller_disabled
before_action :confirm_two_factor_authenticated
before_action :confirm_upload_step_complete
before_action :confirm_document_capture_needed
Expand Down Expand Up @@ -43,10 +42,6 @@ def extra_view_variables

private

def render_404_if_link_sent_controller_disabled
render_not_found unless IdentityConfig.store.doc_auth_link_sent_controller_enabled
end

def confirm_upload_step_complete
return if flow_session['Idv::Steps::UploadStep']

Expand Down
1 change: 1 addition & 0 deletions app/controllers/idv/session_errors_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ def failure
throttle_type: :idv_resolution,
)
@expires_at = throttle.expires_at
@sp_name = decorated_session.sp_name
log_event(based_on_throttle: throttle)
end

Expand Down
2 changes: 1 addition & 1 deletion app/controllers/idv/sessions_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def cancel_processing
end

def cancel_verification_attempt_if_pending_profile
return if current_user.profiles.gpo_verification_pending.blank?
return if !current_user.pending_profile?
Idv::CancelVerificationAttempt.new(user: current_user).call
end

Expand Down
2 changes: 2 additions & 0 deletions app/controllers/users/phones_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,13 @@ class PhonesController < ApplicationController
def add
user_session[:phone_id] = nil
@new_phone_form = NewPhoneForm.new(user: current_user, analytics: analytics)
analytics.add_phone_setup_visit
end

def create
@new_phone_form = NewPhoneForm.new(user: current_user, analytics: analytics)
result = @new_phone_form.submit(user_params)
analytics.multi_factor_auth_phone_setup(**result.to_h)
if result.success?
confirm_phone
elsif recoverable_recaptcha_error?(result)
Expand Down
43 changes: 0 additions & 43 deletions app/forms/api/verify/document_capture_errors_delete_form.rb

This file was deleted.

5 changes: 3 additions & 2 deletions app/forms/gpo_verify_form.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ def submit
UspsInPersonProofing::EnrollmentHelper.schedule_in_person_enrollment(user, pii)
pending_profile&.deactivate(:in_person_verification_pending)
elsif fraud_check_failed? && threatmetrix_enabled?
pending_profile&.remove_gpo_deactivation_reason
deactivate_for_fraud_review
else
activate_profile
Expand Down Expand Up @@ -55,7 +56,6 @@ def gpo_confirmation_code

def deactivate_for_fraud_review
pending_profile&.deactivate_for_fraud_review
pending_profile&.update!(deactivation_reason: nil, verified_at: Time.zone.now)
end

def validate_otp_not_expired
Expand Down Expand Up @@ -94,6 +94,7 @@ def fraud_check_failed?
end

def activate_profile
user.pending_profile&.activate_after_gpo_verification
pending_profile&.remove_gpo_deactivation_reason
pending_profile&.activate
end
end
Loading