summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2017-08-14 16:34:21 -0600
committerGitHub <noreply@github.com>2017-08-14 16:34:21 -0600
commitf43c8b936f5a62820068e0a8d31e480c2cede6bc (patch)
tree513afb9d0b67b957866425321e0634a9cadaaeaf
parent7c793857036d756d482072d6a33d9450366963fa (diff)
parentdbdf60956f388d986f78343d4b34c2c990f7ca86 (diff)
Merge pull request #183 from ponzu-cms/ponzu-dev
[core] adding additional layer of complexity for init secret
-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)