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

View File

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