summaryrefslogtreecommitdiffstats
path: root/model
diff options
context:
space:
mode:
authorenahum <nahumhbl@gmail.com>2016-05-05 10:36:58 -0300
committerChristopher Speller <crspeller@gmail.com>2016-05-05 09:36:58 -0400
commit04b61d1f3852cf5a14ad9912f7cb71635512ebf6 (patch)
tree40c5dd32d828b0773027aefeaa4539a2f0a0228f /model
parent2c92540471004c79e317e8a0daf3e612560beda7 (diff)
downloadchat-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.go8
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