id
This commit is contained in:
parent
a7892b2576
commit
42fc404384
|
@ -94,9 +94,8 @@ func registerSubmit(c *gin.Context) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
errr := db.Query("SELECT 1 FROM beta_keys WHERE key_md5 = ? AND allowed = 1", cmd5(c.PostForm("key")))
|
errr := db.QueryRow("SELECT id FROM beta_keys WHERE key_md5 = ? AND allowed = 1", cmd5(c.PostForm("key")))
|
||||||
fmt.Printf("%v", errr)
|
fmt.Printf("%v", errr)
|
||||||
i = 0
|
|
||||||
for errr.Next() {
|
for errr.Next() {
|
||||||
i++
|
i++
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user