Removed instantiating of Answer field in NewDwellingCaptcha().

This commit is contained in:
Alexander Andreev 2022-06-27 00:44:42 +04:00
parent 9ed5ad42e2
commit 6307433ea0
Signed by: Arav
GPG Key ID: 0388CC8FAA51063F

View File

@ -22,7 +22,6 @@ type DwellingCaptcha struct {
func NewDwellingCaptcha(expiry time.Duration) *DwellingCaptcha { func NewDwellingCaptcha(expiry time.Duration) *DwellingCaptcha {
return &DwellingCaptcha{ return &DwellingCaptcha{
Captcha: captcha.Captcha{ Captcha: captcha.Captcha{
Answer: captcha.GenerateAnswer(),
ExpireIn: captcha.ExpiryDate(expiry)}} ExpireIn: captcha.ExpiryDate(expiry)}}
} }