fix: force lowercase mail

This commit is contained in:
Julien Oculi 2024-02-05 13:27:03 +01:00
parent 374624097c
commit fdd4c4fc61

View file

@ -13,7 +13,7 @@ export async function createUsers(
const { user } = await redmine.users.create({ const { user } = await redmine.users.create({
firstname: capitalize(sanitize(firstname)), firstname: capitalize(sanitize(firstname)),
lastname: capitalize(sanitize(lastname)), lastname: capitalize(sanitize(lastname)),
mail: mail, mail: mail.toLowerCase(),
login, login,
sendCreationMail: true, sendCreationMail: true,
generatePassword: true, generatePassword: true,