mirror of
https://github.com/fjykTec/ModernWMS.git
synced 2024-11-10 09:13:19 +08:00
Fix a bug which allows DoS Attacks
This commit is contained in:
parent
2737f152c3
commit
cf41b5c896
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue