From e79a5f9ae2133a83a785dd523d34da00485c8b19 Mon Sep 17 00:00:00 2001 From: ssongliu <73214554+ssongliu@users.noreply.github.com> Date: Fri, 19 Apr 2024 15:24:08 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E5=AE=89=E5=85=A8?= =?UTF-8?q?=E5=85=A5=E5=8F=A3=E9=95=BF=E5=BA=A6=E6=A0=A1=E9=AA=8C=20(#4594?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/lang/modules/en.ts | 2 +- frontend/src/lang/modules/tw.ts | 2 +- frontend/src/lang/modules/zh.ts | 2 +- frontend/src/views/setting/safe/entrance/index.vue | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/src/lang/modules/en.ts b/frontend/src/lang/modules/en.ts index 9942f50a2..41b64e605 100644 --- a/frontend/src/lang/modules/en.ts +++ b/frontend/src/lang/modules/en.ts @@ -1350,7 +1350,7 @@ const message = { showEntrance: 'Enable Home Page Notification Not Enabled', entranceHelper: 'Enabling secure entry will only allow logging in to the panel through specified secure entry.', entranceError: - 'Please enter a secure login entry point of 6-10 characters, only numbers or letters are supported.', + 'Please enter a secure login entry point of 5-116 characters, only numbers or letters are supported.', entranceInputHelper: 'When the security entry is set to blank, the security entry is cancelled.', randomGenerate: 'Random', expirationTime: 'Expiration Time', diff --git a/frontend/src/lang/modules/tw.ts b/frontend/src/lang/modules/tw.ts index fe3e70913..bb97d3cb8 100644 --- a/frontend/src/lang/modules/tw.ts +++ b/frontend/src/lang/modules/tw.ts @@ -1311,7 +1311,7 @@ const message = { entrance: '安全入口', showEntrance: '啟用概覽頁未開啟提醒', entranceHelper: '開啟安全入口後只能通過指定安全入口登錄面板', - entranceError: '請輸入 6-10 位安全登錄入口,僅支持輸入數字或字母', + entranceError: '請輸入 5-116 位安全登錄入口,僅支持輸入數字或字母', entranceInputHelper: '安全入口設置為空時,則取消安全入口', randomGenerate: '隨機生成', expirationTime: '密碼過期時間', diff --git a/frontend/src/lang/modules/zh.ts b/frontend/src/lang/modules/zh.ts index 575815b8a..b5360c297 100644 --- a/frontend/src/lang/modules/zh.ts +++ b/frontend/src/lang/modules/zh.ts @@ -1312,7 +1312,7 @@ const message = { entrance: '安全入口', showEntrance: '启用概览页未开启提醒', entranceHelper: '开启安全入口后只能通过指定安全入口登录面板', - entranceError: '请输入 6-10 位安全登录入口,仅支持输入数字或字母', + entranceError: '请输入 5-116 位安全登录入口,仅支持输入数字或字母', entranceInputHelper: '安全入口设置为空时,则取消安全入口', randomGenerate: '随机生成', expirationTime: '密码过期时间', diff --git a/frontend/src/views/setting/safe/entrance/index.vue b/frontend/src/views/setting/safe/entrance/index.vue index e5199b22f..8534dcda3 100644 --- a/frontend/src/views/setting/safe/entrance/index.vue +++ b/frontend/src/views/setting/safe/entrance/index.vue @@ -72,7 +72,7 @@ const rules = reactive({ function checkSecurityEntrance(rule: any, value: any, callback: any) { if (form.securityEntrance !== '') { - const reg = /^[A-Za-z0-9]{6,10}$/; + const reg = /^[A-Za-z0-9]{5,116}$/; if (!reg.test(form.securityEntrance)) { return callback(new Error(i18n.global.t('setting.entranceError'))); }