MIT licensed by ncaq
Maintained by [email protected]
This version can be pinned in stack with:yesod-recaptcha2-1.0.2.1@sha256:46cc644d210d59e54b631a661b397c77101d242632c7fe90abca65f268cf11ec,1211

Module documentation for 1.0.2.1

yesod-recaptcha2

Hackage yesod-recaptcha2 on Stackage LTS test

It support new Google reCAPTCHA(v2, v3) for yesod-form instead yesod-recaptcha beacuse original yesod-recaptcha is dead.

And it support reCAPTCHA new version(v2, v3).

Example

Setup

import Yesod.ReCaptcha2
instance YesodReCaptcha App where
  reCaptchaSiteKey = pure "foo"
  reCaptchaSecretKey = pure "bar"
  reCaptchaLanguage = pure Nothing

Append to applicative form

buildForm :: Form MyForm
buildForm = renderDivs $ MyForm <$>
  areq textField "foo" Nothing <*
  reCaptcha