- 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.
server/routers/badger/verifySession.ts : verifyResourceSession() updated code behind "cleanHost" var to a regex which strips the trailing :port for any port (rather than a string match for 80/443)
src/app/auth/resource/[resourceId]/page.tsx : ResourceAuthPage() added a secondary match for serverResourceHost and redirectHost that accounts for ports
server/routers/badger/exchangeSession.ts : Updated exchangeSession() to use the same "cleanHost" type var (with port-stripping) as in verifyResourceSession(), replaced references to "host" with "cleanHost"
and preventing users from changing the email they were invited with.
- Update invite link generation to include email parameter in URL
- Modify signup form to pre-fill and lock email field when provided via invite
- Update invite page and status card to preserve email through redirect chain
- Ensure existing invite URLs continue to work without breaking changes
* New translation keys in en-US locale
* New translation keys in de-DE locale
* New translation keys in fr-FR locale
* New translation keys in it-IT locale
* New translation keys in pl-PL locale
* New translation keys in pt-PT locale
* New translation keys in tr-TR locale
* Move into function
* Replace string matching to boolean check
* Add FIXIT in UsersTable
* Use localization for size units
* Missed and restored translation keys
* fixup! New translation keys in tr-TR locale
* Add translation keys in components
* New translation keys in en-US locale
* New translation keys in de-DE locale
* New translation keys in fr-FR locale
* New translation keys in it-IT locale
* New translation keys in pl-PL locale
* New translation keys in pt-PT locale
* New translation keys in tr-TR locale
* Add translation keys in app/auth
* Fix build
---------
Co-authored-by: Lokowitz <marvinlokowitz@gmail.com>