From fdd4c4fc615db40ebb9e4bb3714114b3a0905813 Mon Sep 17 00:00:00 2001 From: Julien Oculi Date: Mon, 5 Feb 2024 13:27:03 +0100 Subject: [PATCH] fix: force lowercase mail --- src/create_users.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/create_users.ts b/src/create_users.ts index 021706a..0c0ec56 100644 --- a/src/create_users.ts +++ b/src/create_users.ts @@ -13,7 +13,7 @@ export async function createUsers( const { user } = await redmine.users.create({ firstname: capitalize(sanitize(firstname)), lastname: capitalize(sanitize(lastname)), - mail: mail, + mail: mail.toLowerCase(), login, sendCreationMail: true, generatePassword: true,