server: optional verifyCode

This commit is contained in:
fantasticit 2022-08-17 18:25:10 +08:00
parent d96c63e008
commit c6a720887b
1 changed files with 1 additions and 1 deletions

View File

@ -46,6 +46,6 @@ export class ResetPasswordDto {
@MinLength(5, { message: '邮箱验证码至少5个字符' })
@IsString({ message: '邮箱验证码错误正确类型为String' })
@IsNotEmpty({ message: '邮箱验证码不能为空' })
@IsOptional({ message: '邮箱验证码不能为空' })
verifyCode: string;
}