PLT-586 fixing issues with security alert
Этот коммит содержится в:
@@ -32,6 +32,7 @@ type ServiceSettings struct {
|
||||
EnablePostUsernameOverride bool
|
||||
EnablePostIconOverride bool
|
||||
EnableTesting bool
|
||||
EnableSecurityFixAlert *bool
|
||||
}
|
||||
|
||||
type SSOSettings struct {
|
||||
@@ -110,9 +111,8 @@ type RateLimitSettings struct {
|
||||
}
|
||||
|
||||
type PrivacySettings struct {
|
||||
ShowEmailAddress bool
|
||||
ShowFullName bool
|
||||
EnableSecurityFixAlert bool
|
||||
ShowEmailAddress bool
|
||||
ShowFullName bool
|
||||
}
|
||||
|
||||
type TeamSettings struct {
|
||||
@@ -163,6 +163,13 @@ func ConfigFromJson(data io.Reader) *Config {
|
||||
}
|
||||
}
|
||||
|
||||
func (o *Config) SetDefaults() {
|
||||
if o.ServiceSettings.EnableSecurityFixAlert == nil {
|
||||
o.ServiceSettings.EnableSecurityFixAlert = new(bool)
|
||||
*o.ServiceSettings.EnableSecurityFixAlert = true
|
||||
}
|
||||
}
|
||||
|
||||
func (o *Config) IsValid() *AppError {
|
||||
|
||||
if o.ServiceSettings.MaximumLoginAttempts <= 0 {
|
||||
|
||||
Ссылка в новой задаче
Block a user