From 8a6d815152e009a4d93f9bcb6c1d5eaf337ff9ae Mon Sep 17 00:00:00 2001 From: JMDirksen Date: Sat, 19 Jul 2025 09:16:35 +0200 Subject: [PATCH] Fix initial email with upper case --- backend/setup.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/setup.js b/backend/setup.js index 6b9b8e78a..0905a4f34 100644 --- a/backend/setup.js +++ b/backend/setup.js @@ -21,7 +21,7 @@ const setupDefaultUser = () => { .then((row) => { if (!row || !row.id) { // Create a new user and set password - const email = process.env.INITIAL_ADMIN_EMAIL || 'admin@example.com'; + const email = (process.env.INITIAL_ADMIN_EMAIL || 'admin@example.com').toLowerCase(); const password = process.env.INITIAL_ADMIN_PASSWORD || 'changeme'; logger.info('Creating a new user: ' + email + ' with password: ' + password);