Commit Graph

11 Commits

Author SHA1 Message Date
Adrian Astles
69baa6785f feat: Add setup token security for initial server setup
- Add setupTokens database table with proper schema
- Implement setup token generation on first server startup
- Add token validation endpoint and modify admin creation
- Update initial setup page to require setup token
- Add migration scripts for both SQLite and PostgreSQL
- Add internationalization support for setup token fields
- Implement proper error handling and logging
- Add CLI command for resetting user security keys

This prevents unauthorized access during initial server setup by requiring
a token that is generated and displayed in the server console.
2025-08-03 21:17:18 +08:00
Owen
d732c1a845 Clean up migrations 2025-07-28 17:32:15 -07:00
Owen
4d7e25f97b Complete migrations 2025-07-28 17:22:53 -07:00
Owen
80656f48e0 Sqlite migration done 2025-07-28 17:18:51 -07:00
Owen
f0f68632ff Add transaction 2025-07-16 12:34:53 -07:00
Owen
2992de5139 Add basic org subnet thing to postgres
T#
2025-07-16 12:00:38 -07:00
Owen
021bc073a2 Make org subnet optional 2025-07-16 11:35:38 -07:00
Owen
99d0fa974b Remove breakpoints 2025-07-15 16:17:31 -07:00
Owen
b446c2ce4b Add initial migration 2025-07-15 15:58:01 -07:00
miloschwartz
f300838f8e add migration for 1.6.0 2025-06-19 15:58:05 -04:00
miloschwartz
58ba0d07b0 add migration to set trust_proxy to 1 if it exists in config 2025-06-19 12:08:06 -04:00