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 {