issue # ci/cd 테스트
This commit is contained in:
@@ -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])(?=.*[!@#$]).*$/, "비밀번호는 영소문자로 시작하여 숫자, 특수문자(!@#$)를 한 개 이상 포함하여야 합니다.")
|
||||
});
|
||||
Reference in New Issue
Block a user