From c4ba31735b7589033ae882a5b9bca1a0090cf539 Mon Sep 17 00:00:00 2001 From: Jeff Gu Date: Tue, 14 Apr 2026 11:44:05 +0800 Subject: [PATCH] =?UTF-8?q?feat(security):=20=E6=9B=B4=E6=96=B0=20Telegram?= =?UTF-8?q?=20=E5=AE=89=E5=85=A8=E8=AE=BE=E7=BD=AE=E6=8F=90=E7=A4=BA?= =?UTF-8?q?=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/pages/SystemSettings.tsx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/frontend/src/pages/SystemSettings.tsx b/frontend/src/pages/SystemSettings.tsx index d1f2d2c..eb31eab 100644 --- a/frontend/src/pages/SystemSettings.tsx +++ b/frontend/src/pages/SystemSettings.tsx @@ -265,14 +265,15 @@ export function SystemSettings() {
-

安全设置

- - {!telegramSecurityVerified && telegramConfigComplete ? ( +

Telegram 安全设置

+ {!normalizedSystemConfig.adminSecurity.enabled && telegramConfigComplete ? (

- 当前 Telegram 配置尚未验证,安全开关保持关闭。 + 发送测试消息,验证通过后即可开启 Telegram 安全设置。

+ ) : telegramSecurityVerified ? ( +

已开启 Telegram 登录验证与登录通知。

) : ( -

Telegram 配置已验证,安全开关已开启。

+

绑定 Telegram,开启登录验证与登录通知。

)}
updateTelegramField("telegramBotToken", event.target.value)} />