Skip to content

Commit 3814eef

Browse files
authored
fix: admin email setup toLowerCase (#4516)
1 parent 3a8b415 commit 3814eef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/setup.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ module.exports = () => {
288288
// Create root administrator
289289
WIKI.logger.info('Creating root administrator...')
290290
const adminUser = await WIKI.models.users.query().insert({
291-
email: req.body.adminEmail,
291+
email: req.body.adminEmail.toLowerCase(),
292292
provider: 'local',
293293
password: req.body.adminPassword,
294294
name: 'Administrator',

0 commit comments

Comments
 (0)