Documentation ¶
Index ¶
Constants ¶
View Source
const ( RecaptchaURL = `https://www.google.com/recaptcha/api/siteverify` GRecaptchaResponse = `g-recaptcha-response` CaptchaHandle = `handle` MaxCaptchaHandleLength = 80 )
Variables ¶
View Source
var ( ErrCaptchaHandleNotFound = &CaptchaErr{ error: errors.New("captcha handle not found"), SetCaptchaPage: func(p *page.Captcha) { p.CaptchaErr.IsNotFound = true }, } ErrCaptchaVerifyFailed = &CaptchaErr{ error: errors.New("captcha verfication failed"), SetCaptchaPage: func(p *page.Captcha) { p.CaptchaErr.IsVerifyFailed = true }, } )
Functions ¶
Types ¶
type CaptchaEntry ¶
type CaptchaErr ¶
type Config ¶
type Config struct { Enabled bool InsertSecret string ExpireSecs int Recaptcha RecaptchaConfig Redis RedisConfig }
type RecaptchaConfig ¶
type RedisConfig ¶
Click to show internal directories.
Click to hide internal directories.