issue # 로그인, 회원가입, 비밀번호 초기화 Form schema 구현

This commit is contained in:
2025-11-07 05:41:16 +00:00
parent 917bef73b0
commit 85ff7e565b
4 changed files with 47 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
import * as z from 'zod';
import { zodResolver } from '@/hookform/resolvers/zod';
import { useForm } from 'react-hook-form';
const LoginSchema = z.object({
email: z
.email()
, password: z
.string()
.min(8, "비밀번호는 8-12 자리여야 합니다.")
.max(12, "비밀번호는 8-12 자리여야 합니다.")
.regex(\^[a-z](?=.*[0-9])(?=.*[!@#$]).*$\)
});