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