Merge pull request #2080 from flipped-aurora/v2.8.5

发布v2.8.5 beta 版本
This commit is contained in:
PiexlMax(奇淼
2025-08-28 11:45:01 +08:00
committed by GitHub
parent dd34d6e3be
commit cb97d3832d
43 changed files with 2659 additions and 110 deletions
+1 -1
View File
@@ -47,7 +47,7 @@ func (b *BaseApi) Login(c *gin.Context) {
}
var oc bool = openCaptcha == 0 || openCaptcha < interfaceToInt(v)
if oc && !store.Verify(l.CaptchaId, l.Captcha, true) {
if oc && (l.Captcha == "" || l.CaptchaId == "" || !store.Verify(l.CaptchaId, l.Captcha, true)) {
// 验证码次数+1
global.BlackCache.Increment(key, 1)
response.FailWithMessage("验证码错误", c)