From b4232a8f276bf7367a9a72518da74ba7b04ba68d Mon Sep 17 00:00:00 2001 From: Shan Chenyu <103872353+ischenyu@users.noreply.github.com> Date: Thu, 12 Jun 2025 13:12:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20captcha.go=20=E6=B3=A8?= =?UTF-8?q?=E9=87=8A=E6=8B=BC=E5=86=99=E9=94=99=E8=AF=AF=20(#2043)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/config/captcha.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/config/captcha.go b/server/config/captcha.go index 074a9bfa..d678a414 100644 --- a/server/config/captcha.go +++ b/server/config/captcha.go @@ -4,6 +4,6 @@ type Captcha struct { KeyLong int `mapstructure:"key-long" json:"key-long" yaml:"key-long"` // 验证码长度 ImgWidth int `mapstructure:"img-width" json:"img-width" yaml:"img-width"` // 验证码宽度 ImgHeight int `mapstructure:"img-height" json:"img-height" yaml:"img-height"` // 验证码高度 - OpenCaptcha int `mapstructure:"open-captcha" json:"open-captcha" yaml:"open-captcha"` // 防爆破验证码开启此数,0代表每次登录都需要验证码,其他数字代表错误密码此数,如3代表错误三次后出现验证码 + OpenCaptcha int `mapstructure:"open-captcha" json:"open-captcha" yaml:"open-captcha"` // 防爆破验证码开启此数,0代表每次登录都需要验证码,其他数字代表错误密码次数,如3代表错误三次后出现验证码 OpenCaptchaTimeOut int `mapstructure:"open-captcha-timeout" json:"open-captcha-timeout" yaml:"open-captcha-timeout"` // 防爆破验证码超时时间,单位:s(秒) }