1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-24 15:49:44 +02:00

setup wizard UI tweaks

This commit is contained in:
Harvey Kandola 2016-11-27 15:59:08 -08:00
parent a83d6360e4
commit ddb93fae66
6 changed files with 643 additions and 642 deletions

View file

@ -118,7 +118,7 @@ func Check(Db *sqlx.DB, connectionString string) bool {
return false
}
if strings.TrimSpace(flds[0]) == "0" {
log.Error("Entering database set-up mode because the database is empty.", errors.New("no tables"))
log.Info("Entering database set-up mode because the database is empty.....")
web.SiteMode = web.SiteModeSetup
return false
}

View file

@ -87,6 +87,11 @@ func Create(w http.ResponseWriter, r *http.Request) {
dbname := r.Form.Get("dbname")
dbhash := r.Form.Get("dbhash")
fmt.Println(dbname)
fmt.Println(dbhash)
fmt.Println(web.SiteInfo.DBname)
fmt.Println(web.SiteInfo.DBhash)
if dbname != web.SiteInfo.DBname || dbhash != web.SiteInfo.DBhash {
log.Error("database.Create()'s security credentials error ", errors.New("bad db name or validation code"))
return