浏览代码

Fix initial email with upper case

JMDirksen 3 月之前
父节点
当前提交
8a6d815152
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      backend/setup.js

+ 1 - 1
backend/setup.js

@@ -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 || '[email protected]';
+				const email    = (process.env.INITIAL_ADMIN_EMAIL || '[email protected]').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);