From 3ebfcb2c952fd280b054440062e68176b287083c Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Sun, 26 Jun 2022 20:54:15 +0400 Subject: [PATCH] In handlers.go GetExpireInterval() changed to GetExpiry(). --- internal/handlers/handlers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/handlers/handlers.go b/internal/handlers/handlers.go index 02a9854..d2d1538 100644 --- a/internal/handlers/handlers.go +++ b/internal/handlers/handlers.go @@ -15,7 +15,7 @@ func New() *CaptchaHandlers { } 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) fmt.Fprint(w, id)