Fix initial email with upper case

This commit is contained in:
JMDirksen
2025-07-19 09:16:35 +02:00
parent 54d463ac36
commit 8a6d815152

View File

@@ -21,7 +21,7 @@ const setupDefaultUser = () => {
.then((row) => { .then((row) => {
if (!row || !row.id) { if (!row || !row.id) {
// Create a new user and set password // 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'; const password = process.env.INITIAL_ADMIN_PASSWORD || 'changeme';
logger.info('Creating a new user: ' + email + ' with password: ' + password); logger.info('Creating a new user: ' + email + ' with password: ' + password);