This commit is contained in:
Alicia 2019-02-23 16:42:39 +00:00
parent 42fc404384
commit 786b9adc22

View File

@ -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"))) 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)
for errr.Next() { if err.Scan(new(int)) == sql.ErrNoRows {
i++ registerResp(c, errorMessage{T(c, "key bad.")})
}
if i == 0 {
registerResp(c, errorMessage{T(c, "Invalid Beta Key.")})
return return
} }