hopefully fix issues

Signed-off-by: Odyssey <odyssey346@disroot.org>
This commit is contained in:
Odyssey 2022-08-24 19:54:46 +02:00
parent 833b19cd20
commit d6e4ba0761
2 changed files with 2 additions and 4 deletions

View File

@ -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
}

View File

@ -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
}