Files
dh-inspeccion-v2/api-v3/src/administration/users/dto/reset-user-password.dto.ts
T

13 lines
259 B
TypeScript

import { IsBoolean, IsOptional, IsString, MaxLength, MinLength } from 'class-validator';
export class ResetUserPasswordDto {
@IsString()
@MinLength(12)
@MaxLength(128)
password!: string;
@IsOptional()
@IsBoolean()
mustChangePassword = true;
}