13 lines
259 B
TypeScript
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;
|
|
}
|