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 }