Minor styling improvements, and fix for new project setup.

This commit is contained in:
Cameron Redmore 2025-04-26 23:41:46 +01:00
parent 910d1b3d21
commit 10bda9949a
5 changed files with 21 additions and 6 deletions

View file

@ -58,7 +58,7 @@ router.post('/generate-registration-options', async(req, res) =>
}
//Check if the registrationToken matches the setting
const registrationTokenSetting = await getSetting('REGISTRATION_TOKEN');
const registrationTokenSetting = await getSetting('REGISTRATION_TOKEN') || 'INITIAL_REGISTRATION_TOKEN_PLEASE_CHANGE_ME';
if (registrationTokenSetting !== registrationToken && !req.session.loggedInUserId)
{