From 85f827ee1ccc214a6aba60ba4f92e195c6f21bec Mon Sep 17 00:00:00 2001 From: David Taylor Date: Thu, 22 Oct 2020 14:34:10 +0100 Subject: [PATCH] UX: Remove forgot password button from login-preferences (#10998) Showing this button is confusing for sites which are using external authentication. Clicking 'log in' already pops up the login modal, which includes a forgot password link when appropriate. --- .../javascripts/discourse/app/templates/login-preferences.hbs | 3 --- config/locales/client.en.yml | 1 - 2 files changed, 4 deletions(-) diff --git a/app/assets/javascripts/discourse/app/templates/login-preferences.hbs b/app/assets/javascripts/discourse/app/templates/login-preferences.hbs index 4fb2bfe4b4f..6eb0b5d1d4a 100644 --- a/app/assets/javascripts/discourse/app/templates/login-preferences.hbs +++ b/app/assets/javascripts/discourse/app/templates/login-preferences.hbs @@ -4,7 +4,4 @@

{{i18n "login.preferences"}}

{{d-button class="btn-primary" action=(route-action "showLogin") label="log_in"}} - {{#unless siteSettings.enable_sso}} - {{d-button action=(route-action "showForgotPassword") label="login.forgot"}} - {{/unless}} diff --git a/config/locales/client.en.yml b/config/locales/client.en.yml index 0ce6fd321d4..a9759f4e196 100644 --- a/config/locales/client.en.yml +++ b/config/locales/client.en.yml @@ -1691,7 +1691,6 @@ en: sent_activation_email_again_generic: "We sent another activation email. It might take a few minutes for it to arrive; be sure to check your spam folder." to_continue: "Please Log In" preferences: "You need to be logged in to change your user preferences." - forgot: "I don't recall my account details" not_approved: "Your account hasn't been approved yet. You will be notified by email when you are ready to log in." google_oauth2: name: "Google"