tududi/backend/modules
Chris b0321b02fa
fix: resolve OIDC authentication error with existing identities (#1021)
Fixed "Cannot read properties of undefined (reading 'id')" error that occurred
when existing OIDC users attempted to log in. The issue was a case mismatch in
the Sequelize association accessor.

Changes:
- Fixed case mismatch: identity.user -> identity.User (matches association alias)
- Removed invalid username field that doesn't exist in User model
- Fixed admin role assignment to use Role model instead of User model
- Improved transaction error handling to prevent double rollbacks
- Removed unused generateUsername function

Tests:
- Added comprehensive test suite with 12 tests covering all provisioning scenarios
- All tests passing including the previously failing login scenario
2026-04-14 00:11:32 +03:00
..
admin Fix admin password update silently failing due to Sequelize VIRTUAL field (#893) 2026-03-03 15:44:41 +02:00
areas Fix bug 366 (#764) 2026-01-07 18:18:07 +02:00
auth feat: Add OIDC/SSO authentication support (#1008) 2026-04-13 12:17:35 +03:00
backup Fix bug 366 (#764) 2026-01-07 18:18:07 +02:00
feature-flags feat: Add MCP Integration with client-agnostic instructions (#953) 2026-03-20 16:55:49 +02:00
habits Fix bug 366 (#764) 2026-01-07 18:18:07 +02:00
inbox feat: Add OIDC/SSO authentication support (#1008) 2026-04-13 12:17:35 +03:00
mcp fix: use correct InboxItem model name in MCP inbox tools (#986) 2026-04-12 09:10:42 +03:00
notes Fix bug 366 (#764) 2026-01-07 18:18:07 +02:00
notifications Fix bug 366 (#764) 2026-01-07 18:18:07 +02:00
oidc fix: resolve OIDC authentication error with existing identities (#1021) 2026-04-14 00:11:32 +03:00
projects Fix project update API to support clearing nullable fields (#961) 2026-03-22 22:17:23 +02:00
quotes Fix bug 366 (#764) 2026-01-07 18:18:07 +02:00
search Show original task names for recurring tasks in search results (#914) (#915) 2026-03-06 08:57:10 +02:00
shares Fix bug 366 (#764) 2026-01-07 18:18:07 +02:00
tags Fix bug 366 (#764) 2026-01-07 18:18:07 +02:00
tasks feat: Add OIDC/SSO authentication support (#1008) 2026-04-13 12:17:35 +03:00
telegram fix: prevent Telegram polling errors from blocking container startup (#989) (#1019) 2026-04-13 20:44:27 +03:00
url feat: Add OIDC/SSO authentication support (#1008) 2026-04-13 12:17:35 +03:00
users feat: Add OIDC/SSO authentication support (#1008) 2026-04-13 12:17:35 +03:00
views Fix bug 366 (#764) 2026-01-07 18:18:07 +02:00