issue # ci/cd 테스트
This commit is contained in:
9
src/data/form/emailVerification.schema.ts
Normal file
9
src/data/form/emailVerification.schema.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import * as z from 'zod';
|
||||
|
||||
export const EmailVerificationSchema = z.object({
|
||||
email: z
|
||||
.email()
|
||||
, verificationCode: z
|
||||
.string()
|
||||
.length(6, "이메일 인증 번호 6자리를 입력해주십시오.")
|
||||
});
|
||||
@@ -1,3 +1,4 @@
|
||||
export { SignUpSchema } from './signup.schema';
|
||||
export { LoginSchema } from './login.schema';
|
||||
export { ResetPasswordSchema } from './resetPassword.schema';
|
||||
export { ResetPasswordSchema } from './resetPassword.schema';
|
||||
export { EmailVerificationSchema } from './emailVerification.schema';
|
||||
@@ -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])(?=.*[!@#$]).*$/, "비밀번호는 영소문자로 시작하여 숫자, 특수문자(!@#$)를 한 개 이상 포함하여야 합니다.")
|
||||
});
|
||||
@@ -1,8 +1,6 @@
|
||||
import * as z from 'zod';
|
||||
import { zodResolver } from '@/hookform/resolvers/zod';
|
||||
import { useForm } from 'react-hook-form';
|
||||
|
||||
const ResetPasswordSchema = z.object({
|
||||
export const ResetPasswordSchema = z.object({
|
||||
email: z
|
||||
.email()
|
||||
});
|
||||
@@ -1,19 +1,20 @@
|
||||
import * as z from 'zod';
|
||||
import { zodResolver } from '@/hookform/resolvers/zod';
|
||||
import { useForm } from 'react-hook-form';
|
||||
|
||||
const SignUpSchema = z.object({
|
||||
export const SignUpSchema = z.object({
|
||||
email: z
|
||||
.email()
|
||||
.string()
|
||||
.min(1, "이메일을 입력해주십시오.")
|
||||
, password: z
|
||||
.string()
|
||||
.string()
|
||||
.min(8, "비밀번호는 8-12 자리여야 합니다.")
|
||||
.max(12, "비밀번호는 8-12 자리여야 합니다.")
|
||||
.regex(\^[a-z](?=.*[0-9])(?=.*[!@#$]).*$\, "영문 소문자로 시작하고 숫자와 특수문자(!@#$)를 포함해야 합니다.")
|
||||
.regex(/^[a-z](?=.*[0-9])(?=.*[!@#$]).*$/, "영문 소문자로 시작하고 숫자와 특수문자(!@#$)를 포함해야 합니다.")
|
||||
, name: z
|
||||
.string()
|
||||
.min(1, "이름을 입력해주시십시오.")
|
||||
, nickname: z
|
||||
.string()
|
||||
.min(1, "닉네임을 입력해주십시오.")
|
||||
, passwordConfirm: z
|
||||
.string()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user