NewBaseCaptcha() constructor is being used now.
This commit is contained in:
parent
a2bcff84d8
commit
c6bd1a6185
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user