yesod-recaptcha2: yesod recaptcha2

[ library, mit, web ] [ Propose Tags ]

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


[Skip to Readme]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1.0.0, 0.1.0.1, 0.2.0, 0.2.1, 0.2.2, 0.2.3, 0.2.4, 0.3.0, 1.0.0, 1.0.1, 1.0.2, 1.0.2.1
Dependencies aeson, base (>=4.7 && <5), http-conduit, string-transform, text, yesod-core, yesod-form [details]
License MIT
Copyright © ncaq
Author ncaq
Maintainer ncaq@ncaq.net
Category Web
Home page https://github.com/ncaq/yesod-recaptcha2#readme
Bug tracker https://github.com/ncaq/yesod-recaptcha2/issues
Source repo head: git clone https://github.com/ncaq/yesod-recaptcha2
Uploaded by ncaq at 2023-08-05T07:09:24Z
Distributions LTSHaskell:1.0.2.1, NixOS:1.0.2.1, Stackage:1.0.2.1
Reverse Dependencies 1 direct, 0 indirect [details]
Downloads 5558 total (42 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2023-08-05 [all 1 reports]

Readme for yesod-recaptcha2-1.0.2.1

[back to package description]

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