mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-10 04:22:27 +10:00
fix security vulnerability with update password API route
This commit is contained in:
@ -2,7 +2,8 @@ import { createZodDto } from "nestjs-zod/dto";
|
||||
import { z } from "zod";
|
||||
|
||||
export const updatePasswordSchema = z.object({
|
||||
password: z.string().min(6),
|
||||
currentPassword: z.string().min(6),
|
||||
newPassword: z.string().min(6),
|
||||
});
|
||||
|
||||
export class UpdatePasswordDto extends createZodDto(updatePasswordSchema) {}
|
||||
|
||||
Reference in New Issue
Block a user