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 {
|
func NewDwellingCaptcha(expiry time.Duration) *DwellingCaptcha {
|
||||||
return &DwellingCaptcha{
|
return &DwellingCaptcha{
|
||||||
BaseCaptcha: captcha.BaseCaptcha{
|
BaseCaptcha: *captcha.NewBaseCaptcha(expiry)}
|
||||||
ExpireIn: captcha.ExpiryDate(expiry)}}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *DwellingCaptcha) Image(style string) *image.Image {
|
func (c *DwellingCaptcha) Image(style string) *image.Image {
|
||||||
|
Loading…
Reference in New Issue
Block a user