ReCaptcha

Class that implements the google recaptcha challenge

Constructors

this
this(string siteKey, string secretKey)
Undocumented in source.

Members

Functions

generate
string generate(HTTPServerRequest req, HTTPServerResponse res)

Generate a challenge. The request must be initiated from the challenge template

getConfig
Json getConfig()

Returns the site key

getTemplate
string getTemplate(string challangeLocation)

Get a template for the current challenge

validate
bool validate(HTTPServerRequest req, HTTPServerResponse res, string response)

Validate the challenge

Inherited Members

From IChallenge

generate
string generate(HTTPServerRequest req, HTTPServerResponse res)

Generate a challenge. The request must be initiated from the challenge template

getTemplate
string getTemplate(string challangeLocation)

Get a template for the current challenge

getConfig
Json getConfig()

Get config to create the html on client side

validate
bool validate(HTTPServerRequest req, HTTPServerResponse res, string response)

Validate the challenge

Meta