diff --git a/app/controllers/account_reset/request_controller.rb b/app/controllers/account_reset/request_controller.rb
index 05c18b926a4..0ecc00c604e 100644
--- a/app/controllers/account_reset/request_controller.rb
+++ b/app/controllers/account_reset/request_controller.rb
@@ -24,7 +24,7 @@ def create_account_reset_request
def confirm_two_factor_enabled
return if MfaPolicy.new(current_user).two_factor_enabled?
- redirect_to two_factor_options_url
+ redirect_to authentication_methods_setup_url
end
def analytics_attributes
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index 830d7596552..59707cdce32 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -186,7 +186,8 @@ def add_piv_cac_setup_url
end
def service_provider_mfa_setup_url
- service_provider_mfa_policy.user_needs_sp_auth_method_setup? ? two_factor_options_url : nil
+ service_provider_mfa_policy.user_needs_sp_auth_method_setup? ?
+ authentication_methods_setup_url : nil
end
def fix_broken_personal_key_url
@@ -312,7 +313,7 @@ def prompt_to_sign_in_with_request_id(request_id)
end
def prompt_to_setup_mfa
- redirect_to two_factor_options_url
+ redirect_to authentication_methods_setup_url
end
def prompt_to_verify_mfa
diff --git a/app/controllers/sign_up/passwords_controller.rb b/app/controllers/sign_up/passwords_controller.rb
index b5699926e3a..9441308eec8 100644
--- a/app/controllers/sign_up/passwords_controller.rb
+++ b/app/controllers/sign_up/passwords_controller.rb
@@ -75,7 +75,7 @@ def process_unsuccessful_password_creation
def sign_in_and_redirect_user
sign_in @user
- redirect_to two_factor_options_url
+ redirect_to authentication_methods_setup_url
end
end
end
diff --git a/app/controllers/two_factor_authentication/personal_key_verification_controller.rb b/app/controllers/two_factor_authentication/personal_key_verification_controller.rb
index eb56cad8773..9237f4bab0e 100644
--- a/app/controllers/two_factor_authentication/personal_key_verification_controller.rb
+++ b/app/controllers/two_factor_authentication/personal_key_verification_controller.rb
@@ -26,7 +26,7 @@ def create
def check_personal_key_enabled
return if TwoFactorAuthentication::PersonalKeyPolicy.new(current_user).enabled?
- redirect_to two_factor_options_url
+ redirect_to authentication_methods_setup_url
end
def presenter_for_two_factor_authentication_method
@@ -97,7 +97,7 @@ def handle_valid_otp
elsif MfaPolicy.new(current_user).two_factor_enabled?
redirect_to after_mfa_setup_path
else
- redirect_to two_factor_options_url
+ redirect_to authentication_methods_setup_url
end
reset_otp_session_data
end
diff --git a/app/controllers/two_factor_authentication/sms_opt_in_controller.rb b/app/controllers/two_factor_authentication/sms_opt_in_controller.rb
index ea324fc7030..2b66d632443 100644
--- a/app/controllers/two_factor_authentication/sms_opt_in_controller.rb
+++ b/app/controllers/two_factor_authentication/sms_opt_in_controller.rb
@@ -65,7 +65,7 @@ def load_phone
def other_options_mfa_url
if new_user?
- two_factor_options_path
+ authentication_methods_setup_path
elsif has_other_auth_methods? && !user_fully_authenticated?
login_two_factor_options_path
end
diff --git a/app/controllers/users/two_factor_authentication_controller.rb b/app/controllers/users/two_factor_authentication_controller.rb
index 2101e98867c..f9ef0680840 100644
--- a/app/controllers/users/two_factor_authentication_controller.rb
+++ b/app/controllers/users/two_factor_authentication_controller.rb
@@ -54,7 +54,7 @@ def redirect_on_nothing_enabled
if MfaPolicy.new(current_user).two_factor_enabled?
redirect_to login_two_factor_options_path
else
- redirect_to two_factor_options_url
+ redirect_to authentication_methods_setup_url
end
end
@@ -308,7 +308,7 @@ def handle_too_many_confirmation_sends
if user_fully_authenticated?
redirect_to account_url
else
- redirect_to two_factor_options_url
+ redirect_to authentication_methods_setup_url
end
end
end
diff --git a/app/controllers/users/two_factor_authentication_setup_controller.rb b/app/controllers/users/two_factor_authentication_setup_controller.rb
index 0ed30946a07..2177883bc12 100644
--- a/app/controllers/users/two_factor_authentication_setup_controller.rb
+++ b/app/controllers/users/two_factor_authentication_setup_controller.rb
@@ -22,14 +22,14 @@ def create
elsif (result.errors[:selection].include? 'phone') ||
IdentityConfig.store.kantara_2fa_phone_restricted
flash[:phone_error] = t('errors.two_factor_auth_setup.must_select_additional_option')
- redirect_to two_factor_options_path(anchor: 'select_phone')
+ redirect_to authentication_methods_setup_path(anchor: 'select_phone')
else
@presenter = two_factor_options_presenter
render :index
end
rescue ActionController::ParameterMissing
flash[:error] = t('errors.two_factor_auth_setup.must_select_option')
- redirect_back(fallback_location: two_factor_options_path, allow_other_host: false)
+ redirect_back(fallback_location: authentication_methods_setup_path, allow_other_host: false)
end
private
diff --git a/app/presenters/cancellation_presenter.rb b/app/presenters/cancellation_presenter.rb
index 209e04529f6..8172dacb267 100644
--- a/app/presenters/cancellation_presenter.rb
+++ b/app/presenters/cancellation_presenter.rb
@@ -9,7 +9,7 @@ def initialize(referer:, url_options:)
end
def go_back_path
- referer_path || two_factor_options_path
+ referer_path || authentication_methods_setup_path
end
def url_options
diff --git a/app/views/idv/doc_auth/welcome.html.erb b/app/views/idv/doc_auth/welcome.html.erb
index f93e9253cc8..dd10278335d 100644
--- a/app/views/idv/doc_auth/welcome.html.erb
+++ b/app/views/idv/doc_auth/welcome.html.erb
@@ -89,7 +89,7 @@
<%= render 'shared/cancel', link: idv_cancel_path(step: 'welcome') %>
<% else %>
- <%= link_to(t('two_factor_authentication.choose_another_option'), two_factor_options_path) %>
+ <%= link_to(t('two_factor_authentication.choose_another_option'), authentication_methods_setup_path) %>
<% end %>
<% end %>
diff --git a/app/views/shared/_cancel_or_back_to_options.html.erb b/app/views/shared/_cancel_or_back_to_options.html.erb
index 24e1043e479..0e8e4222890 100644
--- a/app/views/shared/_cancel_or_back_to_options.html.erb
+++ b/app/views/shared/_cancel_or_back_to_options.html.erb
@@ -2,6 +2,6 @@
<% if MfaPolicy.new(current_user).two_factor_enabled? %>
<%= link_to t('links.cancel'), account_path %>
<% else %>
- <%= link_to t('two_factor_authentication.choose_another_option'), two_factor_options_path %>
+ <%= link_to t('two_factor_authentication.choose_another_option'), authentication_methods_setup_path %>
<% end %>
<% end %>
diff --git a/app/views/users/phone_setup/index.html.erb b/app/views/users/phone_setup/index.html.erb
index 26db6c61c61..cb8091f16fd 100644
--- a/app/views/users/phone_setup/index.html.erb
+++ b/app/views/users/phone_setup/index.html.erb
@@ -40,5 +40,5 @@
<% end %>
<%= render PageFooterComponent.new do %>
- <%= link_to t('two_factor_authentication.choose_another_option'), two_factor_options_path %>
+ <%= link_to t('two_factor_authentication.choose_another_option'), authentication_methods_setup_path %>
<% end %>
diff --git a/app/views/users/piv_cac_authentication_setup/error.html.erb b/app/views/users/piv_cac_authentication_setup/error.html.erb
index 1854d359069..4556e2298f7 100644
--- a/app/views/users/piv_cac_authentication_setup/error.html.erb
+++ b/app/views/users/piv_cac_authentication_setup/error.html.erb
@@ -12,6 +12,6 @@
<% if MfaPolicy.new(current_user).two_factor_enabled? %>
<%= link_to t('links.cancel'), account_path %>
<% else %>
- <%= link_to t('two_factor_authentication.choose_another_option'), two_factor_options_path %>
+ <%= link_to t('two_factor_authentication.choose_another_option'), authentication_methods_setup_path %>
<% end %>
<% end %>
diff --git a/app/views/users/two_factor_authentication_setup/index.html.erb b/app/views/users/two_factor_authentication_setup/index.html.erb
index 09efca23017..a77bcfc27f0 100644
--- a/app/views/users/two_factor_authentication_setup/index.html.erb
+++ b/app/views/users/two_factor_authentication_setup/index.html.erb
@@ -17,7 +17,7 @@
<%= validated_form_for @two_factor_options_form,
html: { autocomplete: 'off' },
method: :patch,
- url: two_factor_options_path do |f| %>
+ url: authentication_methods_setup_path do |f| %>