Common Lisp Package: CL-RECAPTCHA

README:

FUNCTION

Public

CHALLENGE (&OPTIONAL (PUBLIC-KEY *PUBLIC-CAPTCHA-KEY*))

This is the simplest way. It combines the script and the noscript version.

CHALLENGE-AJAX-SRC

This is for the ajaxified version of recaptcha. Please look at the api for more information on how to use this. http://recaptcha.net/apidocs/captcha/client.html

CHALLENGE-JS (&OPTIONAL (PUBLIC-KEY *PUBLIC-CAPTCHA-KEY*))

This is the javascript-enabled version of the challenge, recaptcha advises you to use this one *and* (challenge-ns) for the normal handling of captchas

CHALLENGE-NS (&OPTIONAL (PUBLIC-KEY *PUBLIC-CAPTCHA-KEY*))

This is the javascript-disabled version of the challenge, recaptcha advises you to use this one *and* (challenge-js) for the normal handling of captchas

VERIFY-CAPTCHA (RECAPTCHA-CHALLENGE-FIELD RECAPTCHA-RESPONSE-FIELD REMOTE-IP &KEY (PRIVATE-KEY *PRIVATE-CAPTCHA-KEY*))

Verifies the result the user gave. There are two values returned. The first indicates the success or failure, the second indicates the error code the captcha-server gave.

VARIABLE

Public

*PRIVATE-CAPTCHA-KEY*

Private key for the recaptcha service, register at http://recaptcha.net/api/getkey

*PUBLIC-CAPTCHA-KEY*

Private key for the recaptcha service, register at http://recaptcha.net/api/getkey

Private

*CAPTCHA-VERIFY-URL*

This is the URL that will be used to verify the result of the captcha. This is the one recaptcha provides

*JS-SOURCE*

The source of the javascript file, the standard value comes from recaptcha itself and should be available in any case