In handlers.go GetExpireInterval() changed to GetExpiry().
This commit is contained in:
parent
3251b68629
commit
3ebfcb2c95
@ -15,7 +15,7 @@ func New() *CaptchaHandlers {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (h *CaptchaHandlers) New(w http.ResponseWriter, r *http.Request) {
|
func (h *CaptchaHandlers) New(w http.ResponseWriter, r *http.Request) {
|
||||||
dc := captcha.NewDwellingCaptcha(captcha.GetExpireInterval())
|
dc := captcha.NewDwellingCaptcha(captcha.GetExpiry())
|
||||||
_, id := captcha.New(r.RemoteAddr, dc)
|
_, id := captcha.New(r.RemoteAddr, dc)
|
||||||
|
|
||||||
fmt.Fprint(w, id)
|
fmt.Fprint(w, id)
|
||||||
|
Loading…
Reference in New Issue
Block a user