r
This commit is contained in:
parent
786b9adc22
commit
d390817934
|
@ -96,7 +96,7 @@ func registerSubmit(c *gin.Context) {
|
||||||
|
|
||||||
errr := db.QueryRow("SELECT id 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)
|
||||||
if err.Scan(new(int)) == sql.ErrNoRows {
|
if errr.Scan(new(int)) == sql.ErrNoRows {
|
||||||
registerResp(c, errorMessage{T(c, "key bad.")})
|
registerResp(c, errorMessage{T(c, "key bad.")})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user