mirror of
https://github.com/beilunyang/moemail.git
synced 2026-09-04 23:06:37 +08:00
feat: Implement username/password authentication and registration features
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user