Unverified Commit 3814eef9 authored by craph's avatar craph Committed by GitHub

fix: admin email setup toLowerCase (#4516)

parent 3a8b415e
......@@ -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',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment