From ecda6eccf6b87a499960b8caf9d869b961132637 Mon Sep 17 00:00:00 2001 From: Benjamin Neff Date: Tue, 30 Apr 2019 00:45:44 +0200 Subject: [PATCH] Remove password reset and sign up link below two factor form They don't make sense on that page, because at this stage, the user already has an account and also has already entered their password. closes #8005 --- app/views/sessions/two_factor.html.haml | 8 -------- 1 file changed, 8 deletions(-) diff --git a/app/views/sessions/two_factor.html.haml b/app/views/sessions/two_factor.html.haml index f7fd7f592..76c29bbd4 100644 --- a/app/views/sessions/two_factor.html.haml +++ b/app/views/sessions/two_factor.html.haml @@ -29,11 +29,3 @@ = f.button t("devise.sessions.new.sign_in"), type: :submit, class: "btn btn-large btn-block btn-primary" - - .text-center - - if display_password_reset_link? - = link_to t("devise.shared.links.forgot_your_password"), - new_password_path(resource_name), id: "forgot_password_link" - %br - - if display_registration_link? - = link_to t("devise.shared.links.sign_up"), new_registration_path(resource_name)