13 Commits

Author SHA1 Message Date
Somoru
883ca1ffc8 refactor: migrate multi-user to use existing user_data table
- Update migration to extend user_data table instead of creating new users table
- Refactor user_management service to work with tmpID (INTEGER) primary key
- Update login.ts to support multi-user authentication with user_data
- Fix auth.ts middleware to use new user management API
- Update API routes to handle tmpID-based user identification
- Store userId as number in session for consistency

This integrates with Trilium's existing OAuth user_data table (v229) and
maintains backward compatibility with single-user installations.
2025-10-21 14:33:37 +05:30
Somoru
6faa197671 feat: add multi-user support (issue #4956)
- Add database migration v234 for multi-user schema
- Implement users, roles, user_roles, and note_shares tables
- Add user management service with CRUD operations
- Implement role-based permission system (Admin/Editor/Reader)
- Add RESTful user management API endpoints
- Update login flow to support username + password authentication
- Maintain backward compatibility with legacy password-only login
- Create default admin user from existing credentials during migration
- Add session management for multi-user authentication
- Include TypeScript type definitions for Node.js globals

Tests: 948 passed | 17 skipped (965 total)
Build: Successful (server and client)
TypeScript: Zero errors
2025-10-21 11:51:44 +05:30
Elian Doran
492f481999
chore(rtl): address 2nd set of requested changes 2025-10-09 20:48:30 +03:00
Elian Doran
63a08c4bd3
fix(login): failure to load if password was failed 2025-10-09 19:33:21 +03:00
Elian Doran
2936a537cf
feat(rtl): apply same mechanism for login/desktop/mobile 2025-10-09 19:12:46 +03:00
Elian Doran
1f022aea4e
chore(rebrand): update GitHub repo in source files 2025-06-30 20:39:29 +03:00
Jin
db3bf4c12c feat: 🎸 set SSO login logic 2025-06-07 12:10:41 +02:00
Elian Doran
9688013c91
fix(server): login rendering failure 2025-05-25 17:36:53 +03:00
Elian Doran
adc8e8ad73
fix(server): serving of images in dev mode 2025-05-25 14:15:12 +03:00
Arne Keller
6467265cfd Misc docs 2025-05-03 08:57:33 +02:00
Elian Doran
b2af043110
chore(nx/server): move source code 2025-04-22 17:16:41 +03:00
Elian Doran
62dbcc0a2e
chore(nx): move all monorepo-style in subfolder for processing 2025-04-22 10:06:06 +03:00
Elian Doran
5058891af8
chore(monorepo/server): move server-side source code 2025-04-18 12:09:56 +03:00