summaryrefslogtreecommitdiff
path: root/system/admin/handlers.go
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2017-08-14 16:33:21 -0600
committerSteve Manuel <nilslice@gmail.com>2017-08-14 16:33:21 -0600
commitdbdf60956f388d986f78343d4b34c2c990f7ca86 (patch)
tree513afb9d0b67b957866425321e0634a9cadaaeaf /system/admin/handlers.go
parent7c793857036d756d482072d6a33d9450366963fa (diff)
adding additional layer of complexity for init secret
Diffstat (limited to 'system/admin/handlers.go')
-rw-r--r--system/admin/handlers.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/admin/handlers.go b/system/admin/handlers.go
index c70dd86..bc46b5c 100644
--- a/system/admin/handlers.go
+++ b/system/admin/handlers.go
@@ -69,7 +69,7 @@ func initHandler(res http.ResponseWriter, req *http.Request) {
}
// get the site name from post to encode and use as secret
- name := []byte(req.FormValue("name"))
+ name := []byte(req.FormValue("name") + db.NewEtag())
secret := base64.StdEncoding.EncodeToString(name)
req.Form.Set("client_secret", secret)