From 2001930c8f858f670f6a1dc20cd696288063838c Mon Sep 17 00:00:00 2001 From: argszero Date: Sat, 10 Oct 2026 23:12:38 +0800 Subject: [PATCH] fix(ui): stop the email hint promising an admin path that does not exist The settings account card told the user "contact an admin to change it", but no email write path exists anywhere: the only user PATCH body is `UserPatch { dept_id }`, and every `UPDATE users SET` in the tree writes just dept_id / verified / password_hash. The sibling nickname hint on the same card already tells the truth ("not supported yet"), and the markup comment right above both fields says neither has a write path. Rework the email hint to match its sibling and state the real situation; the pack value, its static fallback and the i18n cache-buster move together. No new keys, no behavior change beyond the copy. --- ui/index.html | 4 ++-- ui/js/i18n.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ui/index.html b/ui/index.html index 5b43df3..7f03cad 100644 --- a/ui/index.html +++ b/ui/index.html @@ -548,7 +548,7 @@

账户

昵称暂不支持修改 - 邮箱即登录账号,如需变更请联系管理员 + 邮箱即登录账号,暂不支持修改
@@ -864,7 +864,7 @@

使用模型

- + diff --git a/ui/js/i18n.js b/ui/js/i18n.js index 5779787..0dd78f6 100644 --- a/ui/js/i18n.js +++ b/ui/js/i18n.js @@ -469,7 +469,7 @@ "settings.account.nickname": "昵称", "settings.account.nickname.hint": "昵称暂不支持修改", "settings.account.email": "邮箱", - "settings.account.email.hint": "邮箱即登录账号,如需变更请联系管理员", + "settings.account.email.hint": "邮箱即登录账号,暂不支持修改", "settings.notify": "通知", "settings.notify.balance": "点数余额低于阈值时提醒", "settings.notify.consume": "共享 key 被消费时通知", @@ -1300,7 +1300,7 @@ "settings.account.nickname": "Nickname", "settings.account.nickname.hint": "Editing your nickname is not supported yet", "settings.account.email": "Email", - "settings.account.email.hint": "The email is your login account; contact an admin to change it", + "settings.account.email.hint": "Your email is your login account; editing it is not supported yet", "settings.notify": "Notifications", "settings.notify.balance": "Remind me when points balance is below threshold", "settings.notify.consume": "Notify when my shared key is consumed",