Vizzuality/landgriffon

View on GitHub
api/src/modules/users/dto/update.user-password.ts

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
import { ApiProperty } from '@nestjs/swagger';
import { IsString, MaxLength } from 'class-validator';

export class UpdateUserPasswordDTO {
  @ApiProperty()
  @IsString()
  currentPassword!: string;

  @ApiProperty()
  @IsString()
  @MaxLength(72)
  newPassword!: string;
}