NewDwellingCaptcha is now called by an instance.

This commit is contained in:
Alexander Andreev 2022-08-19 02:09:43 +04:00
parent 916b85500d
commit 0bd37dc5fa
Signed by: Arav
GPG Key ID: 0388CC8FAA51063F

View File

@ -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)
}