d
This commit is contained in:
parent
42fc404384
commit
786b9adc22
|
@ -96,11 +96,8 @@ func registerSubmit(c *gin.Context) {
|
|||
|
||||
errr := db.QueryRow("SELECT id FROM beta_keys WHERE key_md5 = ? AND allowed = 1", cmd5(c.PostForm("key")))
|
||||
fmt.Printf("%v", errr)
|
||||
for errr.Next() {
|
||||
i++
|
||||
}
|
||||
if i == 0 {
|
||||
registerResp(c, errorMessage{T(c, "Invalid Beta Key.")})
|
||||
if err.Scan(new(int)) == sql.ErrNoRows {
|
||||
registerResp(c, errorMessage{T(c, "key bad.")})
|
||||
return
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user