dada
This commit is contained in:
parent
3b928ef6d9
commit
a27f057c00
|
@ -94,9 +94,8 @@ func registerSubmit(c *gin.Context) {
|
|||
return
|
||||
}
|
||||
|
||||
if db.QueryRow("SELECT 1 FROM beta_keys WHERE key_md5 = ? AND allowed = 1", cmd5(c.PostForm("key"))).
|
||||
Scan(new(int)) != sql.ErrNoRows {
|
||||
fmt.Println(db.QueryRow("SELECT 1 FROM beta_keys WHERE key_md5 = ? AND allowed = 1", cmd5(c.PostForm("key"))))
|
||||
if db.QueryRow("SELECT * FROM beta_keys WHERE key_md5 = ? AND allowed = 1", cmd5(c.PostForm("key"))) == nil {
|
||||
fmt.Println(db.QueryRow("SELECT * FROM beta_keys WHERE key_md5 = ? AND allowed = 1", cmd5(c.PostForm("key"))))
|
||||
registerResp(c, errorMessage{T(c, "Invalid Beta Key.")})
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user