fix: admin email setup toLowerCase (#4516)
This commit is contained in:
parent
3a8b415ed9
commit
3814eef922
@ -288,7 +288,7 @@ module.exports = () => {
|
|||||||
// Create root administrator
|
// Create root administrator
|
||||||
WIKI.logger.info('Creating root administrator...')
|
WIKI.logger.info('Creating root administrator...')
|
||||||
const adminUser = await WIKI.models.users.query().insert({
|
const adminUser = await WIKI.models.users.query().insert({
|
||||||
email: req.body.adminEmail,
|
email: req.body.adminEmail.toLowerCase(),
|
||||||
provider: 'local',
|
provider: 'local',
|
||||||
password: req.body.adminPassword,
|
password: req.body.adminPassword,
|
||||||
name: 'Administrator',
|
name: 'Administrator',
|
||||||
|
Loading…
Reference in New Issue
Block a user