issue # ci/cd 테스트

This commit is contained in:
민건희
2025-11-09 20:30:46 +09:00
parent 85ff7e565b
commit a4ecfd53dd
12 changed files with 333 additions and 25 deletions

View File

@@ -1,13 +1,11 @@
import * as z from 'zod';
import { zodResolver } from '@/hookform/resolvers/zod';
import { useForm } from 'react-hook-form';
const LoginSchema = z.object({
export const LoginSchema = z.object({
email: z
.email()
, password: z
.string()
.string()
.min(8, "비밀번호는 8-12 자리여야 합니다.")
.max(12, "비밀번호는 8-12 자리여야 합니다.")
.regex(\^[a-z](?=.*[0-9])(?=.*[!@#$]).*$\)
.regex(/^[a-z](?=.*[0-9])(?=.*[!@#$]).*$/, "비밀번호는 영소문자로 시작하여 숫자, 특수문자(!@#$)를 한 개 이상 포함하여야 합니다.")
});