recaptcha-0.1.0.1: Functions for using the reCAPTCHA service in web applications.

Safe HaskellNone

Network.Captcha.ReCaptcha

Synopsis

Documentation

captchaFieldsSource

Arguments

:: String

reCAPTCHA public key

-> Maybe String

Nothing or Just an error message returned by previous validate attempt

-> Html 

Returns HTML element to be inserted in the form for which a CAPTCHA is wanted.

validateCaptchaSource

Arguments

:: String

reCAPTCHA private key

-> String

IP address of the user who solved the CAPTCHA

-> String

value of the recaptcha_challenge_field

-> String

value of the recaptcha_response_field

-> IO (Either String ())

Left error message, or Right () for success

Verify a CAPTCHA.