update cypress tests, update zod validation error messaging to UI

This commit is contained in:
Francis Cao committed 2025-03-07 13:06:38 -08:00
1 parent 72ac97c5d9
commit b1901c7278
18 files changed
+221 -41

No files matched your search

+1 -1
View File
@@ -26,7 +26,7 @@ export async function POST(request: Request) {
const user = await getUserByUsername(username, { includePassword: true });
if (!user || !checkPassword(password, user.password)) {
return unauthorized();
return unauthorized('message.incorrect-username-password');
}
const { id, role, createdAt } = user;