diff options
author | enahum <nahumhbl@gmail.com> | 2016-09-06 09:19:58 -0300 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2016-09-06 08:19:58 -0400 |
commit | 4bd5935bd825eaa92b9d534d9554b762c38e6250 (patch) | |
tree | e6c9f215b36a9817d0933c6055941750ca18b0cc /webapp/components/user_settings/user_settings_general.jsx | |
parent | 9d11dd437faf294a735f52f35e90779353f35293 (diff) | |
download | chat-4bd5935bd825eaa92b9d534d9554b762c38e6250.tar.gz chat-4bd5935bd825eaa92b9d534d9554b762c38e6250.tar.bz2 chat-4bd5935bd825eaa92b9d534d9554b762c38e6250.zip |
PLT-4041 Make SAML FirstName and LastName optional (#3951)
Diffstat (limited to 'webapp/components/user_settings/user_settings_general.jsx')
-rw-r--r-- | webapp/components/user_settings/user_settings_general.jsx | 4 |
1 files changed, 2 insertions, 2 deletions
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( <div @@ -765,7 +765,7 @@ class UserSettingsGeneralTab extends React.Component { if (this.props.activeSection === 'nickname') { let extraInfo; let submit = null; - if (this.props.user.auth_service === 'ldap' && global.window.mm_config.NicknameAttributeSet === 'true') { + if ((this.props.user.auth_service === 'ldap' || this.props.user.auth_service === Constants.SAML_SERVICE) && global.window.mm_config.NicknameAttributeSet === 'true') { extraInfo = ( <span> <FormattedMessage |