mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-19 19:21:33 +10:00
release: v4.1.0
This commit is contained in:
@ -2,10 +2,7 @@ import { createZodDto } from "nestjs-zod/dto";
|
||||
import { z } from "nestjs-zod/z";
|
||||
|
||||
export const twoFactorSchema = z.object({
|
||||
code: z
|
||||
.string()
|
||||
.length(6)
|
||||
.regex(/^[0-9]+$/, { message: "code must be a 6 digit number" }),
|
||||
code: z.string().length(6).regex(/^\d+$/, { message: "code must be a 6 digit number" }),
|
||||
});
|
||||
|
||||
export class TwoFactorDto extends createZodDto(twoFactorSchema) {}
|
||||
|
||||
Reference in New Issue
Block a user