实现管理段用户增删改查改密码
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
import { IsString, Length, Matches } from "class-validator";
|
||||
|
||||
export class UpdatePasswordDto {
|
||||
@IsString()
|
||||
@Length(6, 32)
|
||||
@Matches(/^(?=.*[a-zA-Z])(?=.*\d)[a-zA-Z\d!@#$%^&*()_+\-=\[\]{};:'",.<>/?]{6,32}$/)
|
||||
password: string;
|
||||
}
|
||||
Reference in New Issue
Block a user