hopefully fix issues
Signed-off-by: Odyssey <odyssey346@disroot.org>
This commit is contained in:
parent
833b19cd20
commit
d6e4ba0761
@ -2,7 +2,6 @@ package config
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"log"
|
"log"
|
||||||
"strconv"
|
|
||||||
|
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
)
|
)
|
||||||
@ -14,6 +13,6 @@ func HCaptchaSecretKey() string {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
log.Println("Error reading config for getting hcaptcha.secret_key", err.Error())
|
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
|
return result
|
||||||
}
|
}
|
||||||
|
@ -2,7 +2,6 @@ package config
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"log"
|
"log"
|
||||||
"strconv"
|
|
||||||
|
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
)
|
)
|
||||||
@ -14,6 +13,6 @@ func HCaptchaSiteKey() string {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
log.Println("Error reading config for getting hcaptcha.site_key", err.Error())
|
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
|
return result
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user