Fixing defaults

This commit is contained in:
=Corey Hulen
2015-12-08 14:06:52 -08:00
parent f006951959
commit d2db4b1621
4 changed files with 8 additions and 8 deletions

View File

@@ -68,8 +68,8 @@
"ConnectionSecurity": "",
"InviteSalt": "bjlSR4QqkXFBr7TP4oDzlfZmcNuH9YoS",
"PasswordResetSalt": "vZ4DcKyVVRlKHHJpexcuXzojkE5PZ5eL",
"SendPushNotifications": true,
"PushNotificationServer": "https://push.mattermost.com"
"SendPushNotifications": false,
"PushNotificationServer": ""
},
"RateLimitSettings": {
"EnableRateLimiter": true,

View File

@@ -68,8 +68,8 @@
"ConnectionSecurity": "",
"InviteSalt": "bjlSR4QqkXFBr7TP4oDzlfZmcNuH9YoS",
"PasswordResetSalt": "vZ4DcKyVVRlKHHJpexcuXzojkE5PZ5eL",
"SendPushNotifications": true,
"PushNotificationServer": "https://push.mattermost.com"
"SendPushNotifications": false,
"PushNotificationServer": ""
},
"RateLimitSettings": {
"EnableRateLimiter": true,

View File

@@ -68,8 +68,8 @@
"ConnectionSecurity": "",
"InviteSalt": "bjlSR4QqkXFBr7TP4oDzlfZmcNuH9YoS",
"PasswordResetSalt": "vZ4DcKyVVRlKHHJpexcuXzojkE5PZ5eL",
"SendPushNotifications": true,
"PushNotificationServer": "https://push.mattermost.com"
"SendPushNotifications": false,
"PushNotificationServer": ""
},
"RateLimitSettings": {
"EnableRateLimiter": true,

View File

@@ -181,12 +181,12 @@ func (o *Config) SetDefaults() {
if o.EmailSettings.SendPushNotifications == nil {
o.EmailSettings.SendPushNotifications = new(bool)
*o.EmailSettings.SendPushNotifications = true
*o.EmailSettings.SendPushNotifications = false
}
if o.EmailSettings.PushNotificationServer == nil {
o.EmailSettings.PushNotificationServer = new(string)
*o.EmailSettings.PushNotificationServer = "https://push.mattermost.com"
*o.EmailSettings.PushNotificationServer = ""
}
}