recaptcha-0.1: Functions for using the reCAPTCHA service in web applications.Source codeContentsIndex
Network.Captcha.ReCaptcha
Synopsis
captchaFields :: String -> Maybe String -> Html
validateCaptcha :: String -> String -> String -> String -> IO (Either String ())
Documentation
captchaFieldsSource
:: StringreCAPTCHA public key
-> Maybe StringNothing 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
:: StringreCAPTCHA private key
-> StringIP address of the user who solved the CAPTCHA
-> Stringvalue of the recaptcha_challenge_field
-> Stringvalue of the recaptcha_response_field
-> IO (Either String ())Left error message, or Right () for success
Verify a CAPTCHA.
Produced by Haddock version 2.6.0