This commit is contained in:
Alicia 2019-02-23 16:40:15 +00:00
parent 09840fcce8
commit a7892b2576

View File

@ -94,7 +94,7 @@ func registerSubmit(c *gin.Context) {
return return
} }
errr := db.QueryRow("SELECT 1 FROM beta_keys WHERE key_md5 = ? AND allowed = 1", cmd5(c.PostForm("key"))) errr := db.Query("SELECT 1 FROM beta_keys WHERE key_md5 = ? AND allowed = 1", cmd5(c.PostForm("key")))
fmt.Printf("%v", errr) fmt.Printf("%v", errr)
i = 0 i = 0
for errr.Next() { for errr.Next() {