MaternAlert / src /auth /dto /setup-password.dto.ts
Auspicious14's picture
feat: add staff onboarding, password setup and welcome emails
131aa2a
Raw
History Blame Contribute Delete
218 Bytes
import { IsNotEmpty, IsString, MinLength } from 'class-validator';
export class SetupPasswordDto {
@IsNotEmpty()
@IsString()
token!: string;
@IsNotEmpty()
@IsString()
@MinLength(8)
password!: string;
}