utils/recaptcha/recaptcha.go
Function VerifyCaptcha
has 6 return statements (exceeds 4 allowed). Open
Open
func VerifyCaptcha(captchaResponse []byte) error {
var captcha Captcha
err := json.Unmarshal(captchaResponse, &captcha)
if err != nil {
return err
exported var RECAPTCHA_PRIVATE_KEY should have comment or be unexported Open
Open
RECAPTCHA_PRIVATE_KEY string
- Exclude checks
exported function VerifyCaptcha should have comment or be unexported Open
Open
func VerifyCaptcha(captchaResponse []byte) error {
- Exclude checks
don't use ALL_CAPS in Go names; use CamelCase Open
Open
RECAPTCHA_PRIVATE_KEY string
- Exclude checks