mirror of
https://git.meshkee.com/Meshkee/backend.git
synced 2026-08-11 22:30:59 +04:30
NestJS backend with Prisma, Docker Compose for Postgres/Redis, and deploy docs for the production VM.
11 lines
246 B
TypeScript
11 lines
246 B
TypeScript
import { IsString, MinLength } from 'class-validator';
|
|
|
|
export class ChangePasswordDto {
|
|
@IsString()
|
|
currentPassword!: string;
|
|
|
|
@IsString()
|
|
@MinLength(8, { message: 'newPassword must be at least 8 characters' })
|
|
newPassword!: string;
|
|
}
|