From c6bd1a61850181a13aec00f7b7b20e1995e5bc69 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Fri, 19 Aug 2022 02:22:16 +0400 Subject: [PATCH] NewBaseCaptcha() constructor is being used now. --- internal/captcha/dwelling_captcha.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/internal/captcha/dwelling_captcha.go b/internal/captcha/dwelling_captcha.go index 7ec1b90..3f39882 100644 --- a/internal/captcha/dwelling_captcha.go +++ b/internal/captcha/dwelling_captcha.go @@ -20,8 +20,7 @@ type DwellingCaptcha struct { func NewDwellingCaptcha(expiry time.Duration) *DwellingCaptcha { return &DwellingCaptcha{ - BaseCaptcha: captcha.BaseCaptcha{ - ExpireIn: captcha.ExpiryDate(expiry)}} + BaseCaptcha: *captcha.NewBaseCaptcha(expiry)} } func (c *DwellingCaptcha) Image(style string) *image.Image {