mirror of
https://github.com/documenso/documenso.git
synced 2025-11-13 08:13:56 +10:00
Add two factor authentication for users who wish to enhance the security of their accounts.
13 lines
408 B
TypeScript
13 lines
408 B
TypeScript
import { z } from 'zod';
|
|
|
|
export const ZSignUpMutationSchema = z.object({
|
|
name: z.string().min(1),
|
|
email: z.string().email(),
|
|
password: z.string().min(6),
|
|
signature: z.string().min(1, { message: 'A signature is required.' }),
|
|
});
|
|
|
|
export type TSignUpMutationSchema = z.infer<typeof ZSignUpMutationSchema>;
|
|
|
|
export const ZVerifyPasswordMutationSchema = ZSignUpMutationSchema.pick({ password: true });
|