vikunja/pkg/routes/api/shared
kolaente 5b7924b1f6 fix(auth): return ErrAccountLocked for locked accounts on login
The login status check mapped a locked account to ErrAccountDisabled,
surfacing the disabled-account error code and message even though a
dedicated ErrAccountLocked exists (and the OIDC flow already uses it). Map
the locked status to ErrAccountLocked so credential login is consistent with
OIDC across both /api/v1 and /api/v2. Disabled accounts still return
ErrAccountDisabled.

This changes the v1 login error code for locked accounts on the wire (1020 ->
1026); the change is intentional and approved.
2026-06-17 19:43:41 +00:00
..
admin_user.go feat(api/v2): add admin actions on /api/v2 2026-06-11 19:32:42 +00:00
auth.go fix(auth): return ErrAccountLocked for locked accounts on login 2026-06-17 19:43:41 +00:00
auth_provider.go refactor(user): extract shared account orchestration into models/user/shared for v1+v2 2026-06-11 07:02:31 +00:00
info.go feat(api/v2): add public instance info endpoint 2026-06-11 20:07:43 +00:00
testing.go refactor(testing): extract e2e fixture reset/truncate into shared package 2026-06-17 12:13:50 +00:00