In handlers.go GetExpireInterval() changed to GetExpiry().

This commit is contained in:
Alexander Andreev 2022-06-26 20:54:15 +04:00
parent 3251b68629
commit 3ebfcb2c95
Signed by: Arav
GPG Key ID: 0388CC8FAA51063F

View File

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