mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-24 02:20:13 +01:00
🎨 访问授权码输入错误 3 次后加入验证码 https://github.com/siyuan-note/siyuan/issues/5429
This commit is contained in:
parent
492d6be3e3
commit
e675bc260d
6 changed files with 12 additions and 12 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue