feat: Implement username/password authentication and registration features

This commit is contained in:
beilunyang
2025-01-15 16:00:06 +08:00
parent 969d0ce334
commit 126a4cb948
24 changed files with 2643 additions and 67 deletions
+8
View File
@@ -0,0 +1,8 @@
import { z } from "zod"
export const authSchema = z.object({
username: z.string().min(1, "用户名不能为空"),
password: z.string().min(8, "密码长度必须大于等于8位"),
})
export type AuthSchema = z.infer<typeof authSchema>