[feat] 调整验证码

This commit is contained in:
2024-01-30 11:13:06 +08:00
parent ef1d73c764
commit d0a72dfd0b
2 changed files with 13 additions and 18 deletions
+2 -2
View File
@@ -8,6 +8,6 @@ import (
type Captcha interface {
HttpMiddleware(container *do.Injector) func(next http.Handler) http.Handler
Verify(answer, salt string, clear bool) error
Generate(captchaUuid string, u User) (answer, salt string, err error)
Verify(id int64, answer string, clear bool) error
Generate(captchaUuid, recipient, ip string, u User) (body string, id int64, err error)
}