diff --git a/app/views/users/mfa_selection/index.html.erb b/app/views/users/mfa_selection/index.html.erb index 639bfcd6f73..1fbee1112de 100644 --- a/app/views/users/mfa_selection/index.html.erb +++ b/app/views/users/mfa_selection/index.html.erb @@ -11,7 +11,7 @@ <%= validated_form_for @two_factor_options_form, html: { autocomplete: 'off' }, method: :patch, - url: mfa_setup_path do |f| %> + url: second_mfa_setup_path do |f| %>
<%= @presenter.intro %> diff --git a/config/routes.rb b/config/routes.rb index 7727354f9e2..ecc09a6ae6e 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -218,10 +218,12 @@ post '/account/personal_key' => 'accounts/personal_keys#create' get '/otp/send' => 'users/two_factor_authentication#send_code' + get '/authentication_methods_setup' => 'users/two_factor_authentication_setup#index' + patch '/authentication_methods_setup' => 'users/two_factor_authentication_setup#create' get '/two_factor_options' => 'users/two_factor_authentication_setup#index' patch '/two_factor_options' => 'users/two_factor_authentication_setup#create' - get '/mfa_setup' => 'users/mfa_selection#index' - patch '/mfa_setup' => 'users/mfa_selection#update' + get '/second_mfa_setup' => 'users/mfa_selection#index' + patch '/second_mfa_setup' => 'users/mfa_selection#update' get '/phone_setup' => 'users/phone_setup#index' patch '/phone_setup' => 'users/phone_setup#create' get '/aal3_required' => 'users/aal3#show' @@ -240,9 +242,6 @@ get '/piv_cac_delete' => 'users/piv_cac_setup#confirm_delete' get '/auth_app_delete' => 'users/totp_setup#confirm_delete' - get '/second_mfa_setup' => 'users/mfa_selection#index' - patch '/second_mfa_setup' => 'users/mfa_selection#create' - get '/profile', to: redirect('/account') get '/profile/reactivate', to: redirect('/account/reactivate') get '/profile/verify', to: redirect('/account/verify')