From f84734be84604989bf5f91128ca10555dea2a5ab Mon Sep 17 00:00:00 2001 From: what Date: Tue, 30 Jan 2024 09:33:11 +0800 Subject: [PATCH] =?UTF-8?q?[feat]=20=E8=B0=83=E6=95=B4=E9=AA=8C=E8=AF=81?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- captcha.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/captcha.go b/captcha.go index 1014f24..d4468dd 100644 --- a/captcha.go +++ b/captcha.go @@ -8,6 +8,6 @@ import ( type Captcha interface { HttpMiddleware(container *do.Injector) func(next http.Handler) http.Handler - Verify(id, answer string, clear bool) error - Generate(captchaUuid string) (id, answer string) + Verify(answer, salt string, clear bool) error + Generate(captchaUuid string, u User) (answer, salt string) }