master
lee 2025-07-09 12:16:01 +08:00
parent 8b7d88f2d3
commit 21d0c53174
3 changed files with 8 additions and 2 deletions

View File

@ -19,6 +19,12 @@
"types": "./dist/es/types/index.d.ts",
"default": "./dist/es/types/index.js"
}
},
"./run": {
"import": {
"types": "./dist/es/run.d.ts",
"default": "./dist/es/run.js"
}
}
},
"main": "./dist/cjs/index.js",

View File

@ -126,7 +126,7 @@ export function RegisterForm({
type="submit"
className="w-full mt-8 "
>
Login
register
</Button>
</form>
</Form>

View File

@ -11,7 +11,7 @@ export const authLoginRequestSchema = z.object({
.max(255, "密码最多255个字符"),
});
export const authRegisterRequestSchema = z.object({
email: z.string().email(),
email: z.string().email({ message: "请输入正确的邮箱地址" }),
username: z
.string()
.min(4, "用户名必须至少4个字符")