diff options
Diffstat (limited to 'model/config.go')
-rw-r--r-- | model/config.go | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/model/config.go b/model/config.go index 3015b3324..706d07246 100644 --- a/model/config.go +++ b/model/config.go @@ -250,7 +250,6 @@ type EmailSettings struct { SMTPPort string ConnectionSecurity string InviteSalt string - PasswordResetSalt string SendPushNotifications *bool PushNotificationServer *string PushNotificationContents *string @@ -503,10 +502,6 @@ func (o *Config) SetDefaults() { o.EmailSettings.InviteSalt = NewRandomString(32) } - if len(o.EmailSettings.PasswordResetSalt) == 0 { - o.EmailSettings.PasswordResetSalt = NewRandomString(32) - } - if o.ServiceSettings.SiteURL == nil { o.ServiceSettings.SiteURL = new(string) *o.ServiceSettings.SiteURL = SERVICE_SETTINGS_DEFAULT_SITE_URL @@ -1288,10 +1283,6 @@ func (o *Config) IsValid() *AppError { return NewLocAppError("Config.IsValid", "model.config.is_valid.email_salt.app_error", nil, "") } - if len(o.EmailSettings.PasswordResetSalt) < 32 { - return NewLocAppError("Config.IsValid", "model.config.is_valid.email_reset_salt.app_error", nil, "") - } - if *o.EmailSettings.EmailBatchingBufferSize <= 0 { return NewLocAppError("Config.IsValid", "model.config.is_valid.email_batching_buffer_size.app_error", nil, "") } @@ -1438,7 +1429,6 @@ func (o *Config) Sanitize() { } o.EmailSettings.InviteSalt = FAKE_SETTING - o.EmailSettings.PasswordResetSalt = FAKE_SETTING if len(o.EmailSettings.SMTPPassword) > 0 { o.EmailSettings.SMTPPassword = FAKE_SETTING } |