forked from Shared/esg
11 lines
252 B
TypeScript
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;
|
|
}
|