Files
v3-api/src/common/dto/resetPassword.dto.ts

13 lines
260 B
TypeScript

import { ApiProperty } from '@nestjs/swagger';
import { IsString, IsStrongPassword } from 'class-validator';
export class ResetPasswordDTO {
@ApiProperty()
@IsString()
resetToken: string;
@ApiProperty()
@IsStrongPassword()
newPassword: string;
}