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 /model | |
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 'model')
-rw-r--r-- | model/config.go | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/model/config.go b/model/config.go index cb2d100bc..b111322a1 100644 --- a/model/config.go +++ b/model/config.go @@ -1048,14 +1048,6 @@ func (o *Config) IsValid() *AppError { return NewLocAppError("Config.IsValid", "model.config.is_valid.saml_username_attribute.app_error", nil, "") } - if len(*o.SamlSettings.FirstNameAttribute) == 0 { - return NewLocAppError("Config.IsValid", "model.config.is_valid.saml_first_name_attribute.app_error", nil, "") - } - - if len(*o.SamlSettings.LastNameAttribute) == 0 { - return NewLocAppError("Config.IsValid", "model.config.is_valid.saml_last_name_attribute.app_error", nil, "") - } - if *o.SamlSettings.Verify { if len(*o.SamlSettings.AssertionConsumerServiceURL) == 0 || !IsValidHttpUrl(*o.SamlSettings.AssertionConsumerServiceURL) { return NewLocAppError("Config.IsValid", "model.config.is_valid.saml_assertion_consumer_service_url.app_error", nil, "") |