import { IsOptional, IsString, MinLength } from 'class-validator';
import { ErrorCode } from '../../../common/errors';

export class ChangePasswordDto {
  @IsOptional()
  @IsString()
  currentPassword?: string;

  @IsString()
  @MinLength(8, { message: ErrorCode.VALIDATION_PASSWORD_TOO_SHORT })
  newPassword: string;
}
