diff --git a/app/views/users/mfa_selection/index.html.erb b/app/views/users/mfa_selection/index.html.erb index a7a952c2496..7ecd64e0bf0 100644 --- a/app/views/users/mfa_selection/index.html.erb +++ b/app/views/users/mfa_selection/index.html.erb @@ -24,6 +24,8 @@ <%= f.submit t('forms.buttons.continue'), class: 'margin-bottom-1' %> <% end %> -<%= render 'shared/cancel', link: @after_setup_path %> +<%= render PageFooterComponent.new do %> + <%= link_to t('mfa.skip'), @after_setup_path, method: :get %> +<% end %> <%= javascript_packs_tag_once('webauthn-unhide') %> diff --git a/spec/features/two_factor_authentication/multiple_mfa_sign_up_spec.rb b/spec/features/two_factor_authentication/multiple_mfa_sign_up_spec.rb index edd7b0e58b8..0dd414794e4 100644 --- a/spec/features/two_factor_authentication/multiple_mfa_sign_up_spec.rb +++ b/spec/features/two_factor_authentication/multiple_mfa_sign_up_spec.rb @@ -108,7 +108,7 @@ expect(current_path).to eq account_path end - scenario 'user can select 1 MFA methods and cancels selecting second mfa' do + scenario 'user can select 1 MFA methods and skips selecting second mfa' do sign_in_before_2fa expect(current_path).to eq authentication_methods_setup_path @@ -135,7 +135,7 @@ expect(page).to have_current_path(second_mfa_setup_path) - click_link t('links.cancel') + click_link t('mfa.skip') expect(page).to have_current_path(account_path) end