mirror of
https://github.com/kmc7468/arkvault.git
synced 2026-02-04 08:06:56 +00:00
/api/auth/changePassword, /api/user, /api/user/changeNickname Endpoint 구현
This commit is contained in:
@@ -1,5 +1,11 @@
|
||||
import { z } from "zod";
|
||||
|
||||
export const changePasswordRequest = z.object({
|
||||
oldPassword: z.string().trim().nonempty(),
|
||||
newPassword: z.string().trim().nonempty(),
|
||||
});
|
||||
export type ChangePasswordRequest = z.infer<typeof changePasswordRequest>;
|
||||
|
||||
export const loginRequest = z.object({
|
||||
email: z.string().email().nonempty(),
|
||||
password: z.string().trim().nonempty(),
|
||||
|
||||
Reference in New Issue
Block a user