An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: 访问授权码输入错误 3 次后加入验证码 https://github.com/siyuan-note/siyuan/issues/5429
Liang Dinge675bc260d42
diff --git a/app/appearance/langs/en_US.json b/app/appearance/langs/en_US.jsonindex c00861ca4a..49f44efcfc 100644--- a/app/appearance/langs/en_US.json+++ b/app/appearance/langs/en_US.json@@ -776,8 +776,8 @@"18": "Get community user account failed","19": "User information has expired, please log in again","20": "Cannot be converted to heading when including sub-documents",- "21": "TODO",- "22": "TODO",+ "21": "Please enter the captcha",+ "22": "The captcha is incorrect","23": "TODO","24": "TODO","25": "The attribute name only supports English letters and digits",diff --git a/app/appearance/langs/es_ES.json b/app/appearance/langs/es_ES.jsonindex 2f5023c3ca..4254a61f58 100644--- a/app/appearance/langs/es_ES.json+++ b/app/appearance/langs/es_ES.json@@ -776,8 +776,8 @@"18": "Falló la obtención de la cuenta de usuario de la comunidad","19": "La información del usuario ha caducado, por favor, inicie sesión de nuevo","20": "No se puede convertir en título al incluir subdocumentos",- "21": "TODO",- "22": "TODO",+ "21": "Por favor ingrese el captcha",+ "22": "El captcha es incorrecto","23": "TODO","24": "TODO","25": "El nombre del atributo sólo admite letras y dígitos en inglés",diff --git a/app/appearance/langs/fr_FR.json b/app/appearance/langs/fr_FR.jsonindex 666e52d1c0..de473b2c2c 100644--- a/app/appearance/langs/fr_FR.json+++ b/app/appearance/langs/fr_FR.json@@ -776,8 +776,8 @@"18": "Échec de la récupération du compte utilisateur communautaire","19": "Les informations de l'utilisateur ont expiré, veuillez vous connecter à nouveau.","20": "Ne peut pas être converti en titre lorsque des sous-documents sont inclus.",- "21": "TODO",- "22": "TODO",+ "21": "Veuillez entrer le captcha",+ "22": "Le captcha est incorrect","23": "TODO","24": "TODO","25": "Le nom de l'attribut ne supporte que les lettres et les chiffres anglais.",diff --git a/app/appearance/langs/zh_CHT.json b/app/appearance/langs/zh_CHT.jsonindex 39f6e6fa47..0472566847 100644--- a/app/appearance/langs/zh_CHT.json+++ b/app/appearance/langs/zh_CHT.json@@ -776,8 +776,8 @@"18": "獲取社區用戶帳號失敗","19": "使用者資訊已過期,請重新登入帳號","20": "包含子文檔時無法轉換為標題",- "21": "TODO",- "22": "TODO",+ "21": "請輸入驗證碼",+ "22": "驗證碼不正確","23": "TODO","24": "TODO","25": "屬性名僅支援英文字母和阿拉伯數字",diff --git a/app/appearance/langs/zh_CN.json b/app/appearance/langs/zh_CN.jsonindex d79d9490ef..6f0f3e02af 100644--- a/app/appearance/langs/zh_CN.json+++ b/app/appearance/langs/zh_CN.json@@ -777,8 +777,8 @@"18": "获取社区用户账号失败","19": "用户信息已过期,请重新登录账号","20": "包含子文档时无法转换为标题",- "21": "TODO",- "22": "TODO",+ "21": "请输入验证码",+ "22": "验证码不正确","23": "TODO","24": "TODO","25": "属性名仅支持英文字母和阿拉伯数字",diff --git a/kernel/model/session.go b/kernel/model/session.goindex de75918bca..7804ed3f26 100644--- a/kernel/model/session.go+++ b/kernel/model/session.go@@ -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}}