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
1 change: 0 additions & 1 deletion app/controllers/concerns/idv/phone_otp_rate_limitable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ module PhoneOtpRateLimitable
extend ActiveSupport::Concern

included do
before_action :confirm_two_factor_authenticated
before_action :handle_locked_out_user
end

Expand Down
1 change: 0 additions & 1 deletion app/controllers/concerns/idv/phone_otp_sendable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ module PhoneOtpSendable
extend ActiveSupport::Concern

included do
before_action :confirm_two_factor_authenticated
before_action :handle_locked_out_user
end

Expand Down
2 changes: 1 addition & 1 deletion app/controllers/idv/otp_verification_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class OtpVerificationController < ApplicationController
include StepIndicatorConcern
include PhoneOtpRateLimitable

# confirm_two_factor_authenticated before action is in PhoneOtpRateLimitable
before_action :confirm_two_factor_authenticated
before_action :confirm_step_needed
before_action :confirm_otp_sent
before_action :set_code
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/idv/resend_otp_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class ResendOtpController < ApplicationController
include PhoneOtpRateLimitable
include PhoneOtpSendable

# confirm_two_factor_authenticated before action is in PhoneOtpRateLimitable
before_action :confirm_two_factor_authenticated
before_action :confirm_user_phone_confirmation_needed
before_action :confirm_user_phone_confirmation_session_started

Expand Down
5 changes: 5 additions & 0 deletions spec/features/idv/hybrid_mobile/hybrid_mobile_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@
expect(page).to have_current_path(root_url)
visit idv_hybrid_mobile_document_capture_url

# Confirm that jumping to Phone page does not cause errors
visit idv_phone_url
expect(page).to have_current_path(root_url)
visit idv_hybrid_mobile_document_capture_url

# Confirm that jumping to Welcome page does not cause errors
# This was added for the GettingStarted A/B Test
visit idv_welcome_url
Expand Down