mirror of
https://github.com/PretendoNetwork/website.git
synced 2026-09-30 04:26:36 -05:00
feat: add password change from account page
This commit is contained in:
@@ -123,6 +123,13 @@ export const EmailUpdateSchema = z.object({
|
||||
});
|
||||
export type ApiAccountEmailUpdateRequest = z.infer<typeof EmailUpdateSchema>;
|
||||
|
||||
export const PasswordUpdateSchema = z.object({
|
||||
oldPassword: z.string(),
|
||||
newPassword: z.string(),
|
||||
newPasswordConfirm: z.string()
|
||||
});
|
||||
export type ApiAccountPasswordUpdateRequest = z.infer<typeof PasswordUpdateSchema>;
|
||||
|
||||
export const EmailVerifySchema = z.object({
|
||||
token: z.string()
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user