yesod-recaptcha2-0.2.2: yesod recaptcha2

Safe HaskellNone
LanguageHaskell2010

Yesod.ReCaptcha2

Synopsis

Documentation

class YesodAuth site => YesodReCaptcha site where Source #

default key is testing. you should impl reCaptchaSiteKey and reCaptchaSecretKey

Methods

reCaptchaSiteKey :: HandlerT site IO Text Source #

reCaptchaSecretKey :: HandlerT site IO Text Source #

reCaptchaLanguage :: HandlerT site IO (Maybe Text) Source #

with specific language from https://developers.google.com/recaptcha/docs/language > reCaptchaLanguage = pure (Just "ru")

reCaptcha :: YesodReCaptcha site => AForm (HandlerT site IO) () Source #

for Applicative style form

mReCaptcha :: YesodReCaptcha site => MForm (HandlerT site IO) (FormResult (), [FieldView site]) Source #

for Monadic style form