From fbe278926a111baa018fdb761c3fc33375a2ebe5 Mon Sep 17 00:00:00 2001 From: Alicia Date: Sat, 23 Feb 2019 16:23:06 +0000 Subject: [PATCH] d --- register.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/register.go b/register.go index 501b2e2..2760ec6 100644 --- a/register.go +++ b/register.go @@ -94,7 +94,7 @@ func registerSubmit(c *gin.Context) { return } - if !db.QueryRow("SELECT 1 FROM beta_keys WHERE key_md5 = ?", cmd5(c.PostForm("key"))). + if db.QueryRow("SELECT 1 FROM beta_keys WHERE key_md5 = ?", cmd5(c.PostForm("key"))). Scan(new(int)) != sql.ErrNoRows { registerResp(c, errorMessage{T(c, "Invalid Beta Key.")}) return