Add '@hexahost/contracts' dependency in package.json, export emailSchema from contracts, and update bootstrap-admin script to validate email input. Update README with example email. Enhance pnpm-lock.yaml for workspace integration.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { z } from 'zod';
|
||||
|
||||
const emailSchema = z.string().email().max(320);
|
||||
export const emailSchema = z.string().email().max(320);
|
||||
const passwordSchema = z.string().min(12).max(128);
|
||||
|
||||
export const registerRequestSchema = z.object({
|
||||
|
||||
@@ -23,6 +23,7 @@ export {
|
||||
} from './pagination';
|
||||
|
||||
export {
|
||||
emailSchema,
|
||||
registerRequestSchema,
|
||||
loginRequestSchema,
|
||||
verifyEmailRequestSchema,
|
||||
|
||||
Reference in New Issue
Block a user