8 Commits

Author SHA1 Message Date
eust-w
d4c768475b ✨ Switch login to phone-based lookup (ticket 03)
- handleAuthLogin now authenticates via store.FindUserByPhone instead of
  FindUserByEmail; the login/bootstrap-super-admin request payload field
  is now `phone`. Old email addresses are no longer valid login credentials.
- bootstrap-super-admin now validates phone format (isValidChinaMobilePhone)
  instead of net/mail.ParseAddress; net/mail is fully removed from
  internal/api.
- Same-class gap fix: handleAdminOrganizationUsersCreate (the legacy
  per-organization admin endpoint, not touched by ticket 02) still created
  users by email only, which would have left them unable to log in under
  the new phone-only login. Switched it to phone validation/uniqueness too,
  and removed the now-dead normalizeUserInput/validateUserEmailAvailable
  helpers.
- Frontend: authApi.login, UserContext's login signature, and
  UserBootstrapPanel's submit handler now send `phone` instead of `email`
  (the form/labels were already phone-based from ticket 04).
- Updated ~20 Go test files whose fixtures/helpers logged in via
  user.Email; adminCreateUser/loginSession/bootstrapSuperAdminSession now
  work in terms of phone (deterministically derived from existing
  email-shaped test identities via testPhoneFromSeed, to avoid rewriting
  every call site). Added internal/api/auth_phone_login_test.go covering
  phone login success/failure and old-email rejection.

go test ./internal/api/... and npm run test:frontend match their
pre-ticket baselines exactly (75 Go failures / 599 frontend tests with
586 pass, 13 fail) by failing test name, not just count.
2026-09-22 14:04:59 +08:00
eust-w
f27afc66d8 🧹 refactor(auth): remove all legacy compatibility roles and enforce 5 standard roles 2026-09-03 11:58:59 +08:00
eust-w
37f5804510 ✨ Implement Fanyu v5 human-in-the-loop delivery 2026-08-20 18:32:11 +08:00
eust-w
d37a5f2e79 📦 Publish drosync POC preview downloads 2026-07-29 15:02:46 +08:00
eust-w
ebfa46ec26 ✨ Surface drosync access and client downloads 2026-07-29 14:07:42 +08:00
eust-w
419149c579 🔐 Add scoped drosync access keys and resumable uploads 2026-07-29 00:50:08 +08:00
eust-w
8a86caec22 🐛 Allow device credentials on external sync APIs 2026-07-28 22:17:02 +08:00
eust-w
1ca8cfa5ff ✨ Implement drosync production v1 2026-07-28 20:43:46 +08:00