From 360b96b40a103a1f8c8aa9a416aa675f0c4ba8fb Mon Sep 17 00:00:00 2001 From: Arya Kiran Date: Tue, 11 Jul 2023 20:00:45 +0530 Subject: [PATCH] remove hcaptcha testing stuff from /users --- pages/users.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/pages/users.go b/pages/users.go index d22298d..9d8227f 100644 --- a/pages/users.go +++ b/pages/users.go @@ -12,8 +12,6 @@ import ( "github.com/gofiber/fiber/v2" log "github.com/sirupsen/logrus" "github.com/spf13/viper" - - "github.com/kataras/hcaptcha" ) type Userstruct struct { @@ -38,14 +36,6 @@ type Userinfo struct { Loc string `json:"loc"` } -// Hcaptcha setup - -var ( - secretKey string = os.Getenv("PUBLAPI_HCAPTCHA_SECRET") - siteKey string = os.Getenv("PUBLAPI_HCAPTCHA_SITE") - client = hcaptcha.New(secretKey) -) - func userdata(username, usersonline, ops string) Userinfo { regex := "(^| )" + username + "($| )" isonline, err := regexp.MatchString(string(regex), string(usersonline))