recaptcha

package
v0.0.0-...-6682903 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 17, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type R

type R struct {
	Secret string
	// contains filtered or unexported fields
}

R type represents an object of Recaptcha and has public property Secret, which is secret obtained from google recaptcha tool admin interface

func (R) LastError

func (r R) LastError() []string

LastError returns errors occurred in last re-captcha validation attempt

func (*R) VerifyResponse

func (r *R) VerifyResponse(response string) bool

VerifyResponse is a method similar to `Verify`; but doesn't parse the form for you. Useful if you're receiving the data as a JSON object from a javascript app or similar.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL