Fix existing bugs in tests, refactor users

This commit is contained in:
Jesse Wierzbinski 2023-10-08 10:20:42 -10:00
parent b7587f8d3f
commit 65ff53e90c
19 changed files with 385 additions and 117 deletions

View file

@ -35,7 +35,7 @@ export default async (
email,
});
if (!user || !(await Bun.password.verify(password, user.password)))
if (!user || !(await Bun.password.verify(password, user.password || "")))
return errorResponse("Invalid username or password", 401);
// Get application