Parcourir la source

fix: do not send Webhook addresses to frontend

JustSong il y a 2 ans
Parent
commit
ba25a15bca
2 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 1 1
      model/user.go
  2. 1 1
      web/src/components/PushSetting.js

+ 1 - 1
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

+ 1 - 1
web/src/components/PushSetting.js

@@ -176,7 +176,7 @@ const PushSetting = () => {
         <Form loading={loading}>
           <Header as='h3'>通用设置</Header>
           <Message>
-            注意:密钥类配置信息不会发送到前端显示。另外浏览器可能会错误填充账户和密钥信息,请留意。
+            注意:敏感配置信息不会发送到前端显示。另外浏览器可能会错误填充账户和密钥信息,请留意。
           </Message>
           <Form.Group widths={3}>
             <Form.Select