diff --git a/internal/captcha/dwelling_captcha.go b/internal/captcha/dwelling_captcha.go index 1984507..2ef24cc 100644 --- a/internal/captcha/dwelling_captcha.go +++ b/internal/captcha/dwelling_captcha.go @@ -18,11 +18,11 @@ type DwellingCaptcha struct { Captcha } -func NewDwellingCaptcha(expiration time.Duration) *DwellingCaptcha { +func NewDwellingCaptcha(expiry time.Duration) *DwellingCaptcha { return &DwellingCaptcha{ Captcha: Captcha{ Answer: GenerateAnswer(), - ExpireIn: ExpireDate(expiration)}} + ExpireIn: ExpiryDate(expiry)}} } func (c *DwellingCaptcha) GenerateImage() *image.Image {