mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-14 08:42:08 +10:00
fix(tfa): error message for tfa code length
This commit is contained in:
@ -4,8 +4,8 @@ import { z } from "nestjs-zod/z";
|
|||||||
export const twoFactorSchema = z.object({
|
export const twoFactorSchema = z.object({
|
||||||
code: z
|
code: z
|
||||||
.string()
|
.string()
|
||||||
.length(6)
|
.length(6, { message: "Code must be a 6 digit number" })
|
||||||
.regex(/^[0-9]+$/, { message: "code must be a 6 digit number" }),
|
.regex(/^[0-9]+$/, { message: "Code must be a 6 digit number" }),
|
||||||
});
|
});
|
||||||
|
|
||||||
export class TwoFactorDto extends createZodDto(twoFactorSchema) {}
|
export class TwoFactorDto extends createZodDto(twoFactorSchema) {}
|
||||||
|
|||||||
Reference in New Issue
Block a user