From d3908179349b8477ffce73c0f02403607609cbb2 Mon Sep 17 00:00:00 2001 From: Alicia Date: Sat, 23 Feb 2019 16:43:00 +0000 Subject: [PATCH] r --- register.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/register.go b/register.go index cfba425..3c1df77 100644 --- a/register.go +++ b/register.go @@ -96,7 +96,7 @@ func registerSubmit(c *gin.Context) { errr := db.QueryRow("SELECT id FROM beta_keys WHERE key_md5 = ? AND allowed = 1", cmd5(c.PostForm("key"))) fmt.Printf("%v", errr) - if err.Scan(new(int)) == sql.ErrNoRows { + if errr.Scan(new(int)) == sql.ErrNoRows { registerResp(c, errorMessage{T(c, "key bad.")}) return }