diff options
author | Steve Manuel <nilslice@gmail.com> | 2017-08-14 16:33:21 -0600 |
---|---|---|
committer | Steve Manuel <nilslice@gmail.com> | 2017-08-14 16:33:21 -0600 |
commit | dbdf60956f388d986f78343d4b34c2c990f7ca86 (patch) | |
tree | 513afb9d0b67b957866425321e0634a9cadaaeaf /system/admin/handlers.go | |
parent | 7c793857036d756d482072d6a33d9450366963fa (diff) |
adding additional layer of complexity for init secret
Diffstat (limited to 'system/admin/handlers.go')
-rw-r--r-- | system/admin/handlers.go | 2 |
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) |