update cypress tests, update zod validation error messaging to UI
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user