mirror of
https://github.com/ssep1ol/overleaf-registration-be.git
synced 2026-07-21 12:30:21 +00:00
First commit
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user