make emails lowercase

This commit is contained in:
Phillip Thelen
2025-05-07 12:17:20 +02:00
parent 3ba161abbe
commit a09c6b84d5
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -479,7 +479,7 @@ api.updateHero = {
}
if (updateData.auth.local && updateData.auth.local.email) {
hero.auth.local.email = updateData.auth.local.email;
hero.auth.local.email = updateData.auth.local.email.toLowerCase();
}
}
+1 -1
View File
@@ -33,7 +33,7 @@ export async function socialEmailToLocal (user) {
{ 'auth.local.email': socialEmail },
{ _id: 1 },
).exec();
if (!conflictingUser) return socialEmail;
if (!conflictingUser) return socialEmail.toLowerCase();
}
return undefined;
}