rwadurian/frontend/mining-app/lib/data/datasources/remote
hailin 761dcb1115 fix(auth): resetPassword 解除锁定 + 登录错误提示优化
Backend:
- password.service.ts: resetPassword 成功后调用 user.unlock(),
  清除 loginFailCount 和 lockedUntil,避免用户改密后仍无法登录

Frontend:
- api_client.dart: 401 响应提取后端真实错误消息,不再丢弃
- auth_remote_datasource.dart: loginWithPassword 直接 rethrow
  已知异常类型,避免二次包装导致消息格式混乱
- login_page.dart: 登录失败按错误类型分类提示:
  · 账户锁定 → AlertDialog + "找回密码"按钮
  · 还有尝试机会 → SnackBar(橙色) + "找回密码"Action
  · 其他错误 → 普通 SnackBar

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-10 19:46:06 -07:00
..
auth_remote_datasource.dart fix(auth): resetPassword 解除锁定 + 登录错误提示优化 2026-03-10 19:46:06 -07:00
contribution_remote_datasource.dart feat(mining-app): add estimated earnings and contribution stats API 2026-01-14 08:37:30 -08:00
mining_remote_datasource.dart feat(mining-app): 添加补发记录功能 2026-01-22 01:35:53 -08:00
referral_remote_datasource.dart refactor(frontend): replace all '直推' with '引荐' 2026-01-19 04:43:31 -08:00
trading_remote_datasource.dart feat(trading+app): 预种卖出限制 — 前端 UI 禁用 + 后端查询端点 2026-03-04 05:51:56 -08:00