From 6e7555a5757dddfa9276c304d2f9480fed9e1150 Mon Sep 17 00:00:00 2001 From: enahum Date: Mon, 14 Nov 2016 09:40:12 -0300 Subject: PLT-4502 Fix SAML user settings password help text (#4484) --- .../user_settings/user_settings_security.jsx | 23 +++++++++++++++++++++- webapp/i18n/en.json | 2 ++ 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/webapp/components/user_settings/user_settings_security.jsx b/webapp/components/user_settings/user_settings_security.jsx index 0cee3dfca..1f049c4bd 100644 --- a/webapp/components/user_settings/user_settings_security.jsx +++ b/webapp/components/user_settings/user_settings_security.jsx @@ -473,6 +473,20 @@ export default class SecurityTab extends React.Component { ); + } else if (this.props.user.auth_service === Constants.SAML_SERVICE) { + inputs.push( +
+
+ +
+
+ ); } updateSectionStatus = function resetSection(e) { @@ -533,7 +547,7 @@ export default class SecurityTab extends React.Component { describe = ( ); } else if (this.props.user.auth_service === Constants.LDAP_SERVICE) { @@ -543,6 +557,13 @@ export default class SecurityTab extends React.Component { defaultMessage='Login done through AD/LDAP' /> ); + } else if (this.props.user.auth_service === Constants.SAML_SERVICE) { + describe = ( + + ); } updateSectionStatus = function updateSection() { diff --git a/webapp/i18n/en.json b/webapp/i18n/en.json index fb45dd0cf..85751f699 100644 --- a/webapp/i18n/en.json +++ b/webapp/i18n/en.json @@ -2013,6 +2013,7 @@ "user.settings.security.ldap": "AD/LDAP", "user.settings.security.loginGitlab": "Login done through GitLab", "user.settings.security.loginLdap": "Login done through AD/LDAP", + "user.settings.security.loginSaml": "Login done through SAML", "user.settings.security.logoutActiveSessions": "View and Logout of Active Sessions", "user.settings.security.method": "Sign-in Method", "user.settings.security.newPassword": "New Password", @@ -2041,6 +2042,7 @@ "user.settings.security.passwordErrorUppercaseSymbol": "Your password must contain at least {min} characters made up of at least one uppercase letter and at least one symbol (e.g. \"~!@#$%^&*()\").", "user.settings.security.passwordGitlabCantUpdate": "Login occurs through GitLab. Password cannot be updated.", "user.settings.security.passwordLdapCantUpdate": "Login occurs through AD/LDAP. Password cannot be updated.", + "user.settings.security.passwordSamlCantUpdate": "This field is handled through your login provider. If you want to change it, you need to do so through your login provider.", "user.settings.security.passwordMatchError": "The new passwords you entered do not match.", "user.settings.security.passwordMinLength": "Invalid minimum length, cannot show preview.", "user.settings.security.retypePassword": "Retype New Password", -- cgit v1.2.3-1-g7c22