Updated the login and register to transform the e-mail to lowercase

This commit is contained in:
Tiago Ribeiro
2024-01-29 09:53:47 +00:00
parent b7b2718387
commit 800d04da37
3 changed files with 155 additions and 120 deletions

View File

@@ -76,7 +76,7 @@ export default function BatchCodeGenerator({ user }: { user: User }) {
] = row as string[];
return EMAIL_REGEX.test(email.toString().trim())
? {
email: email.toString().trim(),
email: email.toString().trim().toLowerCase(),
name: `${firstName ?? ""} ${lastName ?? ""}`.trim(),
passport_id: passport_id?.toString().trim() || undefined,
}