MtCaptcha

Class that implements the google recaptcha challenge

Constructors

this
this(IMtCaptchaConfig config)
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(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(string response)

Validate the challenge

Meta