diff --git a/internal/captcha/captcha.go b/internal/captcha/captcha.go index efe6eb1..31e3b2a 100644 --- a/internal/captcha/captcha.go +++ b/internal/captcha/captcha.go @@ -24,7 +24,7 @@ type ICaptcha interface { GetAnswer() Answer Solve(answer Answer) bool IsSolved() bool - Expire() time.Time + Expiry() time.Time } type Captcha struct { @@ -39,6 +39,6 @@ func GenerateAnswer() Answer { return (Answer(ans.String())) } -func ExpireDate(expiration time.Duration) time.Time { - return time.Now().Add(expiration) +func ExpiryDate(expiry time.Duration) time.Time { + return time.Now().Add(expiry) }