diff options
author | enahum <nahumhbl@gmail.com> | 2016-05-05 10:36:58 -0300 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2016-05-05 09:36:58 -0400 |
commit | 04b61d1f3852cf5a14ad9912f7cb71635512ebf6 (patch) | |
tree | 40c5dd32d828b0773027aefeaa4539a2f0a0228f /model | |
parent | 2c92540471004c79e317e8a0daf3e612560beda7 (diff) | |
download | chat-04b61d1f3852cf5a14ad9912f7cb71635512ebf6.tar.gz chat-04b61d1f3852cf5a14ad9912f7cb71635512ebf6.tar.bz2 chat-04b61d1f3852cf5a14ad9912f7cb71635512ebf6.zip |
PLT-2797 Remove LDAP Password Field Name setting (#2884)
Diffstat (limited to 'model')
-rw-r--r-- | model/config.go | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/model/config.go b/model/config.go index 872a5a68f..01b4a886a 100644 --- a/model/config.go +++ b/model/config.go @@ -194,8 +194,7 @@ type LdapSettings struct { QueryTimeout *int // Customization - LoginFieldName *string - PasswordFieldName *string + LoginFieldName *string } type ComplianceSettings struct { @@ -429,11 +428,6 @@ func (o *Config) SetDefaults() { *o.LdapSettings.LoginFieldName = "" } - if o.LdapSettings.PasswordFieldName == nil { - o.LdapSettings.PasswordFieldName = new(string) - *o.LdapSettings.PasswordFieldName = "" - } - if o.ServiceSettings.SessionLengthWebInDays == nil { o.ServiceSettings.SessionLengthWebInDays = new(int) *o.ServiceSettings.SessionLengthWebInDays = 30 |