summaryrefslogtreecommitdiffstats
path: root/model
diff options
context:
space:
mode:
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