NewBaseCaptcha() constructor is being used now.

This commit is contained in:
Alexander Andreev 2022-08-19 02:22:16 +04:00
parent a2bcff84d8
commit c6bd1a6185
Signed by: Arav
GPG Key ID: 0388CC8FAA51063F
1 changed files with 1 additions and 2 deletions

View File

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