We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 827d6e6 + e39ad95 commit f6c4881Copy full SHA for f6c4881
server/api/v1/system/sys_user.go
@@ -47,7 +47,7 @@ func (b *BaseApi) Login(c *gin.Context) {
47
}
48
49
var oc bool = openCaptcha == 0 || openCaptcha < interfaceToInt(v)
50
- if oc && !store.Verify(l.CaptchaId, l.Captcha, true) {
+ if oc && (l.Captcha == "" || l.CaptchaId == "" || !store.Verify(l.CaptchaId, l.Captcha, true)) {
51
// 验证码次数+1
52
global.BlackCache.Increment(key, 1)
53
response.FailWithMessage("验证码错误", c)
0 commit comments