A platform for community discussion. Free, open, simple.
UX: add instructions to update email when sso_overrides_email is enabled
Arpit Jalan0c01cb2cf38c
diff --git a/app/assets/javascripts/discourse/templates/preferences/account.hbs b/app/assets/javascripts/discourse/templates/preferences/account.hbsindex 800ad4d47f6..41793e04a96 100644--- a/app/assets/javascripts/discourse/templates/preferences/account.hbs+++ b/app/assets/javascripts/discourse/templates/preferences/account.hbs@@ -41,6 +41,9 @@{{/if}}</div><div class='instructions'>+ {{#if siteSettings.sso_overrides_email}}+ {{i18n 'user.email.sso_override_instructions'}}+ {{/if}}{{i18n 'user.email.instructions'}}</div>{{else}}diff --git a/config/locales/client.en.yml b/config/locales/client.en.ymlindex 783d6ce28a8..37c711ef6c5 100644--- a/config/locales/client.en.yml+++ b/config/locales/client.en.yml@@ -855,7 +855,8 @@ en:primary: "Primary Email"secondary: "Secondary Emails"no_secondary: "No secondary emails"- instructions: "never shown to the public"+ sso_override_instructions: "Email can be updated from SSO provider."+ instructions: "Never shown to the public."ok: "We will email you to confirm"invalid: "Please enter a valid email address"authenticated: "Your email has been authenticated by {{provider}}"diff --git a/config/site_settings.yml b/config/site_settings.ymlindex e55460adfd5..f4127f317dc 100644--- a/config/site_settings.yml+++ b/config/site_settings.yml@@ -410,6 +410,7 @@ login:sso_overrides_email:default: falsevalidator: "SsoOverridesEmailValidator"+ client: truesso_overrides_username: falsesso_overrides_name: falsesso_overrides_avatar: