yesod-recaptcha2-0.2.4: yesod recaptcha2

Safe HaskellNone
LanguageHaskell2010

Yesod.ReCaptcha2

Synopsis

Documentation

class YesodAuth site => YesodReCaptcha site where #

default key is testing. you should impl reCaptchaSiteKey and reCaptchaSecretKey

Methods

reCaptchaSiteKey :: HandlerFor site Text #

reCaptchaSecretKey :: HandlerFor site Text #

reCaptchaLanguage :: HandlerFor site (Maybe Text) #

with specific language from https://developers.google.com/recaptcha/docs/language

reCaptchaLanguage = pure (Just "ru")

reCaptcha :: YesodReCaptcha site => AForm (HandlerFor site) () #

for Applicative style form

mReCaptcha :: YesodReCaptcha site => MForm (HandlerFor site) (FormResult (), [FieldView site]) #

for Monadic style form