twitch-clone/backend/src/module/auth/account/inputs/change-password.input.ts
2025-07-29 05:30:29 +03:00

18 lines
355 B
TypeScript

import { Field, InputType } from '@nestjs/graphql';
import { IsNotEmpty, IsString, MinLength } from 'class-validator';
@InputType()
export class ChangePasswordInput {
@Field(() => String)
@IsString()
@IsNotEmpty()
@MinLength(8)
oldPassword: string;
@Field(() => String)
@IsString()
@IsNotEmpty()
@MinLength(8)
newPassword: string;
}