diff --git a/register.go b/register.go index a573a36..363c0e1 100644 --- a/register.go +++ b/register.go @@ -94,7 +94,7 @@ func registerSubmit(c *gin.Context) { return } - errr := db.QueryRow("SELECT 1 FROM beta_keys WHERE key_md5 = ? AND allowed = 1", cmd5(c.PostForm("key"))) + errr := db.Query("SELECT 1 FROM beta_keys WHERE key_md5 = ? AND allowed = 1", cmd5(c.PostForm("key"))) fmt.Printf("%v", errr) i = 0 for errr.Next() {