In dwelling_captcha.go. Renamed ExpireDate() to ExpiryDate(). In NewDwellingCaptcha() argument expiration changed to expiry.
This commit is contained in:
parent
1dd070abd4
commit
f7d55b9c44
@ -18,11 +18,11 @@ type DwellingCaptcha struct {
|
|||||||
Captcha
|
Captcha
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewDwellingCaptcha(expiration time.Duration) *DwellingCaptcha {
|
func NewDwellingCaptcha(expiry time.Duration) *DwellingCaptcha {
|
||||||
return &DwellingCaptcha{
|
return &DwellingCaptcha{
|
||||||
Captcha: Captcha{
|
Captcha: Captcha{
|
||||||
Answer: GenerateAnswer(),
|
Answer: GenerateAnswer(),
|
||||||
ExpireIn: ExpireDate(expiration)}}
|
ExpireIn: ExpiryDate(expiry)}}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *DwellingCaptcha) GenerateImage() *image.Image {
|
func (c *DwellingCaptcha) GenerateImage() *image.Image {
|
||||||
|
Loading…
Reference in New Issue
Block a user