From ba25a15bca0798e5ef57439fec2dffd2385025de Mon Sep 17 00:00:00 2001 From: JustSong Date: Tue, 10 Jan 2023 18:37:33 +0800 Subject: [PATCH] fix: do not send Webhook addresses to frontend --- model/user.go | 2 +- web/src/components/PushSetting.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/model/user.go b/model/user.go index 43ef96b..f02dc25 100644 --- a/model/user.go +++ b/model/user.go @@ -78,7 +78,7 @@ func GetUserById(id int, selectAll bool) (*User, error) { "channel", "token", "wechat_test_account_id", "wechat_test_account_template_id", "wechat_test_account_open_id", "wechat_corp_account_id", "wechat_corp_account_agent_id", "wechat_corp_account_user_id", "wechat_corp_account_client_type", - "corp_webhook_url", "lark_webhook_url", "ding_webhook_url", "bark_server", "telegram_chat_id", "discord_webhook_url", + "bark_server", "telegram_chat_id", }).First(&user, "id = ?", id).Error } return &user, err diff --git a/web/src/components/PushSetting.js b/web/src/components/PushSetting.js index 3b6477b..4181466 100644 --- a/web/src/components/PushSetting.js +++ b/web/src/components/PushSetting.js @@ -176,7 +176,7 @@ const PushSetting = () => {
通用设置
- 注意:密钥类配置信息不会发送到前端显示。另外浏览器可能会错误填充账户和密钥信息,请留意。 + 注意:敏感配置信息不会发送到前端显示。另外浏览器可能会错误填充账户和密钥信息,请留意。