Files
esg/src/users/dto/reset-password.dto.ts
2026-06-09 14:07:37 +03:30

11 lines
252 B
TypeScript

import { ApiProperty } from '@nestjs/swagger';
import { IsNotEmpty, IsString, MinLength } from 'class-validator';
export class ResetPasswordDto {
@ApiProperty({ minLength: 8 })
@IsString()
@IsNotEmpty()
@MinLength(8)
newPassword!: string;
}