File

src/models/user/dto/delete-user.dto.ts

Description

Describes the fields needed to delete an User

Index

Properties

Properties

currentPassword
Type : string
Decorators :
@IsString()
@IsNotEmpty()

User current password

import { IsNotEmpty, IsString } from 'class-validator';

/** Describes the fields needed to delete an User */
export class DeleteUserDto {
  /**
   * User current password
   * @example "abc123456"
   */
  @IsString()
  @IsNotEmpty()
  currentPassword: string;
}

results matching ""

    No results matching ""