From dbdf60956f388d986f78343d4b34c2c990f7ca86 Mon Sep 17 00:00:00 2001 From: Steve Manuel Date: Mon, 14 Aug 2017 16:33:21 -0600 Subject: adding additional layer of complexity for init secret --- system/admin/handlers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'system') 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) -- cgit v1.2.3