实现修改密码,但引入了修改密码后无法点击窗口的bug

This commit is contained in:
2025-05-18 23:18:42 +08:00
parent 0d586f9aae
commit 2e16ffe42d
6 changed files with 197 additions and 83 deletions

View File

@@ -0,0 +1,10 @@
import { IsString, Length, Matches } from "class-validator";
export class UpdateUserPasswordDto {
@IsString({ message: '密码不得为空' })
@Length(6, 32, { message: '密码长度只能为6~32' })
@Matches(/^(?=.*[a-zA-Z])(?=.*\d)[a-zA-Z\d!@#$%^&*()_+\-=\[\]{};:'",.<>/?]{6,32}$/,
{ message: '密码必须包含字母和数字且长度在6~32之间' }
)
password: string;
}