When I moved implementation to pkg directory an error appeared that DwellingCaptcha doesn't implement generateImage() method. And these methods was copied here to resolve this problem. But, actual fix was implementing an empty generateImage() method for base Captcha struct.

This commit is contained in:
Alexander Andreev 2022-06-26 23:57:16 +04:00
parent 8053952122
commit 9e7f3a2728
Signed by: Arav
GPG Key ID: 0388CC8FAA51063F
1 changed files with 0 additions and 17 deletions

View File

@ -73,20 +73,3 @@ func (c *DwellingCaptcha) GetImage() *image.Image {
return &c.Image
}
func (c *DwellingCaptcha) GetAnswer() captcha.Answer {
return c.Answer
}
func (c *DwellingCaptcha) Solve(answer captcha.Answer) bool {
c.Solved = c.Answer == answer
return c.Solved
}
func (c *DwellingCaptcha) IsSolved() bool {
return c.Solved
}
func (c *DwellingCaptcha) Expiry() time.Time {
return c.ExpireIn
}