Skip to content

Commit

Permalink
fix: admin email setup toLowerCase (#4516)
Browse files Browse the repository at this point in the history
  • Loading branch information
craph authored Sep 30, 2021
1 parent 3a8b415 commit 3814eef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 3814eef

Please sign in to comment.