First commit

This commit is contained in:
corrado.mulas
2024-11-20 01:06:55 +01:00
parent d5b34a9f82
commit 1f140e9681

View File

@@ -9,9 +9,9 @@ import (
)
func validateRecaptcha(token string) (bool, error) {
secret := os.Getenv("RECAPTCHA_SECRET_KEY")
secret := os.Getenv("CAPTCHA_SERVER_KEY")
if secret == "" {
return false, errors.New("missing RECAPTCHA_SECRET_KEY")
return false, errors.New("missing CAPTCHA_SERVER_KEY")
}
url := "https://www.google.com/recaptcha/api/siteverify"