Commit 89b47835 authored by mingyard's avatar mingyard

feat:修改密码长度限制

parent 9759b23d
...@@ -34,8 +34,8 @@ export class RegisterDto { ...@@ -34,8 +34,8 @@ export class RegisterDto {
}) })
@IsNotEmpty() @IsNotEmpty()
@IsString() @IsString()
@Matches(/^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d]{8,}$/, { @Matches(/^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d]{6,}$/, {
message: '密码必须包含至少8个字符,包括字母和数字', message: '密码必须包含至少6个字符,包括字母和数字',
}) })
password: string; password: string;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment