packages feed

yesod-recaptcha2 1.0.2 → 1.0.2.1

raw patch · 2 files changed

+19/−10 lines, 2 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

README.md view
@@ -1,24 +1,33 @@ # yesod-recaptcha2  [![Hackage](https://img.shields.io/hackage/v/yesod-recaptcha2.svg)](https://hackage.haskell.org/package/yesod-recaptcha2)-[![Build Status](https://travis-ci.org/ncaq/yesod-recaptcha2.svg?branch=master)](https://travis-ci.org/ncaq/yesod-recaptcha2)+[![yesod-recaptcha2 on Stackage LTS](http://stackage.org/package/yesod-recaptcha2/badge/lts)](http://stackage.org/lts/package/yesod-recaptcha2)+[![test](https://github.com/ncaq/yesod-recaptcha2/actions/workflows/test.yml/badge.svg)](https://github.com/ncaq/yesod-recaptcha2/actions/workflows/test.yml) +It support new Google [reCAPTCHA(v2, v3)](https://www.google.com/recaptcha/about/) for [yesod-form](https://hackage.haskell.org/package/yesod-form) instead [yesod-recaptcha](https://hackage.haskell.org/package/yesod-recaptcha) beacuse original yesod-recaptcha is dead.++And it support reCAPTCHA new version(v2, v3).++# Example++## Setup+ ~~~hs import Yesod.ReCaptcha2 ~~~  ~~~hs instance YesodReCaptcha App where-    reCaptchaSiteKey = pure "foo"-    reCaptchaSecretKey = pure "bar"-    reCaptchaLanguage = pure Nothing+  reCaptchaSiteKey = pure "foo"+  reCaptchaSecretKey = pure "bar"+  reCaptchaLanguage = pure Nothing ~~~  ## Append to applicative form  ~~~hs buildForm :: Form MyForm-buildForm = renderDivs $ MyForm-  <$> areq textField "foo" Nothing-  <* reCaptcha+buildForm = renderDivs $ MyForm <$>+  areq textField "foo" Nothing <*+  reCaptcha ~~~
yesod-recaptcha2.cabal view
@@ -1,13 +1,13 @@ cabal-version: 1.12 --- This file has been generated from package.yaml by hpack version 0.34.4.+-- This file has been generated from package.yaml by hpack version 0.35.2. -- -- see: https://github.com/sol/hpack  name:           yesod-recaptcha2-version:        1.0.2+version:        1.0.2.1 synopsis:       yesod recaptcha2-description:    recaptcha2 for yesod-form+description:    It support new Google reCAPTCHA(v2, v3) for yesod-form instead yesod-recaptcha beacuse original yesod-recaptcha is dead. category:       Web homepage:       https://github.com/ncaq/yesod-recaptcha2#readme bug-reports:    https://github.com/ncaq/yesod-recaptcha2/issues