fix(t209): retain login inputs after failure

This commit is contained in:
QiuSW
2026-07-27 16:03:08 +08:00
parent f99744e2ed
commit 5782c3088d
4 changed files with 38 additions and 18 deletions
+10 -5
View File
@@ -4,7 +4,7 @@ title: 保留失败采购登录的已填写凭证
phase: 2
deps:
- T-206
status: TODO
status: DONE
created: 2026-07-27
context_ref: d86a88e
work_branch: null
@@ -34,10 +34,10 @@ write_paths:
## 验收要点
- [ ] 服务端拒绝、网络失败和本地校验失败后,五个已填写字段可直接修改并重试。
- [ ] 成功登录后不保留登录页敏感输入,设备密钥只进入既有加密存储。
- [ ] 密码和设备密钥不进入日志、普通 Preferences 或错误文案。
- [ ] Android 单元测试与 Debug 构建通过。
- [x] 服务端拒绝、网络失败和本地校验失败后,五个已填写字段可直接修改并重试。
- [x] 成功登录后不保留登录页敏感输入,设备密钥只进入既有加密存储。
- [x] 密码和设备密钥不进入日志、普通 Preferences 或错误文案。
- [x] Android 单元测试与 Debug 构建通过。
## 边界
@@ -47,3 +47,8 @@ write_paths:
## 执行记录
- 2026-07-27:任务已登记,待实现。
- 2026-07-27:登录 UI 改为等待 Repository 布尔结果;失败时保留 Compose 内存中的
后台地址、账号、密码、设备 ID 和设备密钥,成功才清理敏感输入。新增本地提交锁,
防止请求尚未开始时重复点击。
- 2026-07-27:`./gradlew.bat :app:compileDebugKotlin :app:testDebugUnitTest
:app:assembleDebug` 通过;最新 Debug APK 已安装并冷启动至 PKG110,无 crash/ANR。