From d6e4ba0761c4f7de61b44d40398941e5e7e0f15a Mon Sep 17 00:00:00 2001 From: Odyssey Date: Wed, 24 Aug 2022 19:54:46 +0200 Subject: [PATCH] hopefully fix issues Signed-off-by: Odyssey --- config/hcaptchasecretkey.go | 3 +-- config/hcaptchasitekey.go | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/config/hcaptchasecretkey.go b/config/hcaptchasecretkey.go index 654b6b3..e1cedca 100644 --- a/config/hcaptchasecretkey.go +++ b/config/hcaptchasecretkey.go @@ -2,7 +2,6 @@ package config import ( "log" - "strconv" "github.com/spf13/viper" ) @@ -14,6 +13,6 @@ func HCaptchaSecretKey() string { if err != nil { log.Println("Error reading config for getting hcaptcha.secret_key", err.Error()) } - result := strconv.Itoa(viper.GetInt("hcaptcha.secret_key")) + result := viper.GetString("hcaptcha.secret_key") return result } diff --git a/config/hcaptchasitekey.go b/config/hcaptchasitekey.go index b97cdf2..599d81e 100644 --- a/config/hcaptchasitekey.go +++ b/config/hcaptchasitekey.go @@ -2,7 +2,6 @@ package config import ( "log" - "strconv" "github.com/spf13/viper" ) @@ -14,6 +13,6 @@ func HCaptchaSiteKey() string { if err != nil { log.Println("Error reading config for getting hcaptcha.site_key", err.Error()) } - result := strconv.Itoa(viper.GetInt("hcaptcha.site_key")) + result := viper.GetString("hcaptcha.site_key") return result }