make V1 Mail Case-Insensitive

This commit is contained in:
Nicolas
2025-07-23 10:10:18 +02:00
parent d003b2cf12
commit 34a232024e
3 changed files with 3 additions and 3 deletions

View File

@@ -13,7 +13,7 @@ export const resetPassword = async (email: string) => {
email,
},
});
const oldUser = (OLD_USER as OldUser[]).find((u) => u.email === email);
const oldUser = (OLD_USER as OldUser[]).find((u) => u.email.toLowerCase() === email.toLowerCase());
if (!user) {
if (oldUser) {
user = await createNewUserFromOld(oldUser);