In dwelling_captcha.go. Renamed ExpireDate() to ExpiryDate(). In NewDwellingCaptcha() argument expiration changed to expiry.

This commit is contained in:
Alexander Andreev 2022-06-26 20:51:04 +04:00
parent 1dd070abd4
commit f7d55b9c44
Signed by: Arav
GPG Key ID: 0388CC8FAA51063F

View File

@ -18,11 +18,11 @@ type DwellingCaptcha struct {
Captcha Captcha
} }
func NewDwellingCaptcha(expiration time.Duration) *DwellingCaptcha { func NewDwellingCaptcha(expiry time.Duration) *DwellingCaptcha {
return &DwellingCaptcha{ return &DwellingCaptcha{
Captcha: Captcha{ Captcha: Captcha{
Answer: GenerateAnswer(), Answer: GenerateAnswer(),
ExpireIn: ExpireDate(expiration)}} ExpireIn: ExpiryDate(expiry)}}
} }
func (c *DwellingCaptcha) GenerateImage() *image.Image { func (c *DwellingCaptcha) GenerateImage() *image.Image {