Skip to content

Commit

Permalink
Merge pull request #183 from ponzu-cms/ponzu-dev
Browse files Browse the repository at this point in the history
[core] adding additional layer of complexity for init secret
  • Loading branch information
nilslice authored Aug 14, 2017
2 parents 7c79385 + dbdf609 commit f43c8b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/admin/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit f43c8b9

Please sign in to comment.