🎨 访问授权码输入错误 3 次后加入验证码 https://github.com/siyuan-note/siyuan/issues/5429

This commit is contained in:
Liang Ding 2022-07-16 16:30:11 +08:00
parent 492d6be3e3
commit e675bc260d
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
6 changed files with 12 additions and 12 deletions

View file

@ -66,14 +66,14 @@ func LoginAuth(c *gin.Context) {
captchaArg := arg["captcha"]
if nil == captchaArg {
ret.Code = 1
ret.Msg = "need input captcha"
ret.Msg = Conf.Language(21)
return
}
inputCaptcha = captchaArg.(string)
if session.Captcha != inputCaptcha {
ret.Code = 1
ret.Msg = "invalid captcha"
ret.Msg = Conf.Language(22)
return
}
}