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:
@@ -4,11 +4,13 @@ import (
|
||||
"bytes"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"log"
|
||||
"net/http"
|
||||
"os"
|
||||
)
|
||||
|
||||
func validateRecaptcha(token string) (bool, error) {
|
||||
log.Printf("Validating Turnstile token: %s", token)
|
||||
secret := os.Getenv("TURNSTILE_SECRET_KEY")
|
||||
if secret == "" {
|
||||
return false, fmt.Errorf("TURNSTILE_SECRET_KEY is not set")
|
||||
|
||||
Reference in New Issue
Block a user