mirror of
https://github.com/documize/community.git
synced 2025-07-21 22:29:41 +02:00
set defaults for request context
This commit is contained in:
parent
63b24aed3f
commit
8081b60146
23 changed files with 692 additions and 666 deletions
|
@ -60,11 +60,6 @@ func (h *Handler) Create(w http.ResponseWriter, r *http.Request) {
|
|||
dbname := r.Form.Get("dbname")
|
||||
dbhash := r.Form.Get("dbhash")
|
||||
|
||||
h.Runtime.Log.Info(dbname)
|
||||
h.Runtime.Log.Info(dbhash)
|
||||
h.Runtime.Log.Info(web.SiteInfo.DBname)
|
||||
h.Runtime.Log.Info(web.SiteInfo.DBhash)
|
||||
|
||||
if dbname != web.SiteInfo.DBname || dbhash != web.SiteInfo.DBhash {
|
||||
h.Runtime.Log.Error("database.Create()'s security credentials error ", errors.New("bad db name or validation code"))
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue