summaryrefslogtreecommitdiffstats
path: root/api/admin.go
diff options
context:
space:
mode:
author=Corey Hulen <corey@hulen.com>2015-10-09 12:24:39 -0700
committer=Corey Hulen <corey@hulen.com>2015-10-09 12:24:39 -0700
commit61f92517f317f4b3f437b8db48f31c569ceb5f2d (patch)
tree23b9d7227a502a54187af96ec91eed6e1f4b7d69 /api/admin.go
parent12cd7c03d6676466f7b10b8e80b4e05edab0cf2a (diff)
downloadchat-61f92517f317f4b3f437b8db48f31c569ceb5f2d.tar.gz
chat-61f92517f317f4b3f437b8db48f31c569ceb5f2d.tar.bz2
chat-61f92517f317f4b3f437b8db48f31c569ceb5f2d.zip
PLT-586 fixing issues with security alert
Diffstat (limited to 'api/admin.go')
-rw-r--r--api/admin.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/api/admin.go b/api/admin.go
index 2167868e0..cd1e5d2de 100644
--- a/api/admin.go
+++ b/api/admin.go
@@ -104,6 +104,8 @@ func saveConfig(c *Context, w http.ResponseWriter, r *http.Request) {
return
}
+ cfg.SetDefaults()
+
if err := cfg.IsValid(); err != nil {
c.Err = err
return