From 4bd5935bd825eaa92b9d534d9554b762c38e6250 Mon Sep 17 00:00:00 2001 From: enahum Date: Tue, 6 Sep 2016 09:19:58 -0300 Subject: PLT-4041 Make SAML FirstName and LastName optional (#3951) --- webapp/components/admin_console/saml_settings.jsx | 4 ++-- webapp/components/user_settings/user_settings_general.jsx | 4 ++-- webapp/i18n/en.json | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'webapp') diff --git a/webapp/components/admin_console/saml_settings.jsx b/webapp/components/admin_console/saml_settings.jsx index 9fb78f472..fe8acaf16 100644 --- a/webapp/components/admin_console/saml_settings.jsx +++ b/webapp/components/admin_console/saml_settings.jsx @@ -455,7 +455,7 @@ export default class SamlSettings extends AdminSettings { helpText={ } value={this.state.firstNameAttribute} @@ -474,7 +474,7 @@ export default class SamlSettings extends AdminSettings { helpText={ } value={this.state.lastNameAttribute} diff --git a/webapp/components/user_settings/user_settings_general.jsx b/webapp/components/user_settings/user_settings_general.jsx index 07af50059..abf94fa6b 100644 --- a/webapp/components/user_settings/user_settings_general.jsx +++ b/webapp/components/user_settings/user_settings_general.jsx @@ -630,7 +630,7 @@ class UserSettingsGeneralTab extends React.Component { let extraInfo; let submit = null; if (this.props.user.auth_service === '' || - (this.props.user.auth_service === 'ldap' && + ((this.props.user.auth_service === 'ldap' || this.props.user.auth_service === Constants.SAML_SERVICE) && (global.window.mm_config.FirstNameAttributeSet === 'false' || global.window.mm_config.LastNameAttributeSet === 'false'))) { inputs.push(