Files
one-pipe-system/openspec/changes/add-self-service-password-change/tasks.md
luo e79d599da1
All checks were successful
构建并部署前端到测试环境 / deploy (push) Successful in 56s
feat: 修改密码全局
2026-09-28 11:17:39 +08:00

14 lines
1011 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
## 1. 头像菜单与修改密码表单
- [x] 1.1 在头像菜单“个人中心”和“锁定屏幕”之间添加“修改密码”入口,不设置权限判断。
- [x] 1.2 实现修改密码表单,收集当前密码、新密码及确认密码,并在前端校验必填项与两次新密码一致。
- [x] 1.3 调用认证 API;请求仅包含 `old_password` 和 `new_password`,成功后清空表单并提示结果,失败时显示错误反馈。
- [x] 1.4 添加中英文菜单、表单、校验及结果提示文案。
## 2. API 契约与验证
- [x] 2.1 对齐 `ChangePasswordParams` 与 `AuthService.changePassword` 的请求 DTO,确保网络请求字段为 OpenAPI 定义的 snake_case,且不发送确认密码。
- [x] 2.2 验证菜单顺序、表单校验、成功与失败反馈,以及入口不依赖任何权限编码。
- [x] 2.3 运行相关类型检查和构建,处理本次改动引入的问题。
- [x] 2.4 密码修改成功后清理本地认证状态并跳转登录页。