This commit is contained in:
PxlLoewe
2025-07-24 11:58:11 -07:00
parent 0c80c046e1
commit 4c6a009764
8 changed files with 55 additions and 24 deletions

View File

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