From 0bd37dc5fa5cba3ad10cf210c47d79780d47ed31 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Fri, 19 Aug 2022 02:09:43 +0400 Subject: [PATCH] NewDwellingCaptcha is now called by an instance. --- internal/handlers/handlers.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/internal/handlers/handlers.go b/internal/handlers/handlers.go index 567dd9a..fc797ea 100644 --- a/internal/handlers/handlers.go +++ b/internal/handlers/handlers.go @@ -16,8 +16,7 @@ func New() *CaptchaHandlers { } func (h *CaptchaHandlers) New(w http.ResponseWriter, r *http.Request) { - dc := captcha.NewDwellingCaptcha(captcha.GetExpiry()) - _, id := captcha.New(r.RemoteAddr, dc) + _, id := captcha.New(r.RemoteAddr) fmt.Fprint(w, id) }