From 04b61d1f3852cf5a14ad9912f7cb71635512ebf6 Mon Sep 17 00:00:00 2001 From: enahum Date: Thu, 5 May 2016 10:36:58 -0300 Subject: PLT-2797 Remove LDAP Password Field Name setting (#2884) --- model/config.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'model/config.go') 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 -- cgit v1.2.3-1-g7c22