refactor: update Zod schemas to v4
This commit is contained in:
@@ -3,11 +3,15 @@ import { z } from "zod"
|
||||
export const signInSchema = z.object({
|
||||
username: z
|
||||
.string()
|
||||
.min(1, { message: "Invalid username" })
|
||||
.min(1, {
|
||||
error: "Invalid username"
|
||||
})
|
||||
.nonempty("Username is required"),
|
||||
password: z
|
||||
.string()
|
||||
.min(3, { message: "Password is too short" })
|
||||
.min(3, {
|
||||
error: "Password is too short"
|
||||
})
|
||||
.nonempty("Password is required"),
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user