@hackage yesod-recaptcha21.0.2.1

yesod recaptcha2

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