From 2058ab8747fd1f8abc6dae60f9ddeee8387a4a54 Mon Sep 17 00:00:00 2001 From: qewc <42550681+qewc@users.noreply.github.com> Date: Sat, 16 Mar 2019 09:20:06 +0000 Subject: [PATCH] remove keys --- register.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/register.go b/register.go index 4f7f147..11990ad 100644 --- a/register.go +++ b/register.go @@ -94,12 +94,6 @@ func registerSubmit(c *gin.Context) { return } - errr := db.QueryRow("SELECT id FROM beta_keys WHERE key_md5 = ? AND allowed = 1", cmd5(c.PostForm("key"))) - if errr.Scan(new(int)) == sql.ErrNoRows { - registerResp(c, errorMessage{T(c, "Your Invitation Code is invalid. Please use the form below to obtain one.")}) - return - } - uMulti, criteria := tryBotnets(c) if criteria != "" { schiavo.CMs.Send( @@ -132,7 +126,6 @@ func registerSubmit(c *gin.Context) { setYCookie(int(lid), c) logIP(c, int(lid)) - db.Exec("UPDATE beta_keys SET allowed = 0 WHERE key_md5 = ?", cmd5(c.PostForm("key"))) rd.Incr("ripple:registered_users")