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
1 changed files with 1 additions and 1 deletions

View File

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