From 3814eef92277973a52ceb3c76e793586ab2b1226 Mon Sep 17 00:00:00 2001 From: craph Date: Thu, 30 Sep 2021 02:41:04 +0200 Subject: [PATCH] fix: admin email setup toLowerCase (#4516) --- server/setup.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/setup.js b/server/setup.js index 44fb9d5d..6d87a29f 100644 --- a/server/setup.js +++ b/server/setup.js @@ -288,7 +288,7 @@ module.exports = () => { // Create root administrator WIKI.logger.info('Creating root administrator...') const adminUser = await WIKI.models.users.query().insert({ - email: req.body.adminEmail, + email: req.body.adminEmail.toLowerCase(), provider: 'local', password: req.body.adminPassword, name: 'Administrator',