비밀번호 변경 페이지 구현

This commit is contained in:
static committed 2025-01-13 02:53:32 +09:00
1 parent 299787537e
commit 8bb4d70fa5
10 files changed
+99 -14

No files matched your search

+2 -2
View File
@@ -1,10 +1,10 @@
import { z } from "zod";
export const changePasswordRequest = z.object({
export const passwordChangeRequest = z.object({
oldPassword: z.string().trim().nonempty(),
newPassword: z.string().trim().nonempty(),
});
export type ChangePasswordRequest = z.infer<typeof changePasswordRequest>;
export type PasswordChangeRequest = z.infer<typeof passwordChangeRequest>;
export const loginRequest = z.object({
email: z.string().email().nonempty(),