dorianim/formrecevr

View on GitHub
internal/api/turnstile.go

Summary

Maintainability
A
35 mins
Test Coverage

Function ValidateTurnstileToken has 5 return statements (exceeds 4 allowed).
Open

func ValidateTurnstileToken(token string, secret string, remoteIp string) (bool, error) {
    req := TokenValidateRequest{
        Secret:   secret,
        Response: token,
        RemoteIP: remoteIp,
Severity: Major
Found in internal/api/turnstile.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status