密码长度

parent 2b073a6f
...@@ -71,7 +71,7 @@ public UserRequestValidator() ...@@ -71,7 +71,7 @@ public UserRequestValidator()
{ {
action(); action();
RuleFor(x => x.RoleArr).NotNull().NotEmpty(); RuleFor(x => x.RoleArr).NotNull().NotEmpty();
RuleFor(x => x.Password).NotNull().NotEmpty().Length(4, 20); RuleFor(x => x.Password).NotNull().NotEmpty().Length(4, 64);
RuleFor(x => x.HosIDArray).NotNull().NotEmpty().Must(f => f.Length > 0); RuleFor(x => x.HosIDArray).NotNull().NotEmpty().Must(f => f.Length > 0);
}); });
...@@ -92,7 +92,7 @@ public UserRequestValidator() ...@@ -92,7 +92,7 @@ public UserRequestValidator()
RuleSet("Self", () => RuleSet("Self", () =>
{ {
RuleFor(x => x.Password).Length(4, 20); RuleFor(x => x.Password).Length(4, 64);
//RuleFor(x => x.Mobile).Must((pre) => //RuleFor(x => x.Mobile).Must((pre) =>
//{ //{
// if (!string.IsNullOrEmpty(pre)) // if (!string.IsNullOrEmpty(pre))
......
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