Phase 1 complete

This commit is contained in:
GW_MC
2026-02-24 10:34:55 +00:00
parent 630b60d7e2
commit 8714d6bd22
112 changed files with 11063 additions and 73 deletions

View File

@@ -0,0 +1,27 @@
import { IsString, IsEmail, MinLength, IsOptional } from 'class-validator';
import { ApiPropertyOptional } from '@nestjs/swagger';
export class UpdateUserDto {
@ApiPropertyOptional({ description: 'New email address', example: 'newemail@example.com' })
@IsOptional()
@IsEmail()
email?: string;
@ApiPropertyOptional({ description: 'New username', example: 'newusername' })
@IsOptional()
@IsString()
@MinLength(3)
username?: string;
}
export class UpdatePasswordDto {
@ApiPropertyOptional({ description: 'Current password', example: 'oldpassword123' })
@IsString()
@MinLength(6)
currentPassword: string;
@ApiPropertyOptional({ description: 'New password', example: 'newpassword123' })
@IsString()
@MinLength(6)
newPassword: string;
}