diff --git a/i18n/en.json b/i18n/en.json index 27a0eb5a..d7c7af4e 100644 --- a/i18n/en.json +++ b/i18n/en.json @@ -443,6 +443,7 @@ "显示名称": "Display Name", "请输入新的显示名称": "Please enter a new display name", "已绑定的 GitHub 账户": "GitHub Account Bound", + "已绑定的 Discord 账户": "Discord Account Bound", "此项只读,需要用户通过个人设置页面的相关绑定按钮进行绑定,不可直接修改": "This item is read-only. Users need to bind through the relevant binding button on the personal settings page, and cannot be modified directly", "已绑定的微信账户": "WeChat Account Bound", "已绑定的邮箱账户": "Email Account Bound", diff --git a/web/src/pages/User/EditUser.js b/web/src/pages/User/EditUser.js index b1c77945..4cec5565 100644 --- a/web/src/pages/User/EditUser.js +++ b/web/src/pages/User/EditUser.js @@ -13,13 +13,14 @@ const EditUser = () => { display_name: '', password: '', github_id: '', + discord_id: '', wechat_id: '', email: '', quota: 0, group: 'default' }); const [groupOptions, setGroupOptions] = useState([]); - const { username, display_name, password, github_id, wechat_id, email, quota, group } = + const { username, display_name, password, github_id, wechat_id, email, quota, discord_id } = inputs; const handleInputChange = (e, { name, value }) => { setInputs((inputs) => ({ ...inputs, [name]: value })); @@ -156,6 +157,16 @@ const EditUser = () => { readOnly /> + + +