Fix a bug which allows DoS Attacks

This commit is contained in:
JawerZeng 2023-04-12 15:45:54 +08:00
parent 2737f152c3
commit cf41b5c896

View file

@ -13,6 +13,7 @@ namespace ModernWMS.Core.Models
/// </summary>
[Required(ErrorMessage ="Required")]
[Display(Name = "user_name")]
[MaxLength(128, ErrorMessage = "MaxLength")]
public string user_name { get; set; } = string.Empty;
/// <summary>
/// password
@ -20,6 +21,7 @@ namespace ModernWMS.Core.Models
[Required(ErrorMessage ="Required")]
[Display(Name = "password")]
[MaxLength(64, ErrorMessage = "MaxLength")]
public string password { get; set; } = string.Empty;
}
}