8ebac41318
* refactor(server): tsconfigs * chore: dummy commit * fix: start.sh * chore: restore original entry scripts
16 lines
352 B
TypeScript
16 lines
352 B
TypeScript
import { ApiProperty } from '@nestjs/swagger';
|
|
import { IsNotEmpty, IsString, MinLength } from 'class-validator';
|
|
|
|
export class ChangePasswordDto {
|
|
@IsString()
|
|
@IsNotEmpty()
|
|
@ApiProperty({ example: 'password' })
|
|
password!: string;
|
|
|
|
@IsString()
|
|
@IsNotEmpty()
|
|
@MinLength(8)
|
|
@ApiProperty({ example: 'password' })
|
|
newPassword!: string;
|
|
}
|