Skip to content

The open source simple and complete warehouse management system is derived from our many years of experience in implementing erp projects. We stripped the original commercial system wms function and opened it up for free, hoping to help the majority of small and medium-sized enterprises. At present, the system supports cross-platform。

Fix a bug which allows DoS Attacks

JawerZengcf41b5c8966b
diff --git a/backend/ModernWMS.Core/Models/LoginInputViewModel.cs b/backend/ModernWMS.Core/Models/LoginInputViewModel.cs
index 03b1705..c8829e9 100644
--- a/backend/ModernWMS.Core/Models/LoginInputViewModel.cs
+++ b/backend/ModernWMS.Core/Models/LoginInputViewModel.cs
@@ -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;
}
}