Allow changing username and password in settings; admin can delete duplicate accounts.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-10-17 19:05:41 +08:00
parent 972d5a1e8c
commit d25a4c6862
6 changed files with 137 additions and 20 deletions
+6 -4
View File
@@ -22,13 +22,15 @@
- **账户 / 用户 / 机器**:管理员可见;普通用户仅「我的账户」
- **系统设置**:修改当前登录用户密码
### 修改密码
### 修改用户名 / 密码
1. 登录后打开 **系统设置**
2. 输入当前密码与新密码(至少 6 位)→ 保存
3. 下次登录使用新密码
2. 可改 **用户名**;改密码则填写新密码(至少 6 位,不改留空)
3. 须填写 **当前密码** 验证 → 保存
4. 下次用新用户名/密码登录
> 初始管理员密码来自部署时的 `.env`(默认 admin123);修改后以系统设置为准。
> 初始管理员来自部署 `.env`(默认 `admin` / `admin123`);改过后以系统设置为准。
> 早期版本会种子创建 1 个示例交易账户「模拟盘-主」;现已不再自动创建。重复项可在账户页删除。
## 2. 管理员:建账户与用户