INIT
This commit is contained in:
18
backend/src/auth/dto/reset-password.dto.ts
Normal file
18
backend/src/auth/dto/reset-password.dto.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
import { IsNotEmpty, IsString, MinLength } from 'class-validator';
|
||||
|
||||
/**
|
||||
* 비밀번호 재설정 요청 DTO
|
||||
*
|
||||
* @export
|
||||
* @class ResetPasswordDto
|
||||
*/
|
||||
export class ResetPasswordDto {
|
||||
@IsString()
|
||||
@IsNotEmpty()
|
||||
resetToken: string;
|
||||
|
||||
@IsString()
|
||||
@IsNotEmpty()
|
||||
@MinLength(6)
|
||||
newPassword: string;
|
||||
}
|
||||
Reference in New Issue
Block a user