Open-source eCommerce platform for C# and ASP.NET Core 10 with MongoDB. Build multi-store shops and multi-vendor marketplaces with B2B/B2C, REST API, plugins, Vue 3 and Docker.
C# aspnet-corecsharpdockerdotnetecommerceecommerce-platformmongodbmulti-storemulti-vendornosqlonline-shopshoppingcart
Minor changes - rename
support6aeee766338f
diff --git a/src/Business/Grand.Business.Core/Utilities/Customers/ChangePasswordRequest.cs b/src/Business/Grand.Business.Core/Utilities/Customers/ChangePasswordRequest.csindex 2a1ed05fc..95ed0c68e 100644--- a/src/Business/Grand.Business.Core/Utilities/Customers/ChangePasswordRequest.cs+++ b/src/Business/Grand.Business.Core/Utilities/Customers/ChangePasswordRequest.cs@@ -12,9 +12,9 @@ namespace Grand.Business.Core.Utilities.Customers/// </summary>public string Email { get; set; }/// <summary>- /// A value indicating whether we should validate request+ /// A value indicating whether we should validate password/// </summary>- public bool ValidateRequest { get; set; }+ public bool ValidOldPassword { get; set; }/// <summary>/// Password format/// </summary>@@ -33,18 +33,18 @@ namespace Grand.Business.Core.Utilities.Customers/// Ctor/// </summary>/// <param name="email">Email</param>- /// <param name="validateRequest">A value indicating whether we should validate request</param>+ /// <param name="validOldPassword">A value indicating whether we should validate old password</param>/// <param name="newPasswordFormat">Password format</param>/// <param name="newPassword">New password</param>/// <param name="oldPassword">Old password</param>- public ChangePasswordRequest(string email, bool validateRequest,+ public ChangePasswordRequest(string email, bool validOldPassword,PasswordFormat newPasswordFormat, string newPassword, string oldPassword = ""){- this.Email = email;- this.ValidateRequest = validateRequest;- this.PasswordFormat = newPasswordFormat;- this.NewPassword = newPassword;- this.OldPassword = oldPassword;+ Email = email;+ ValidOldPassword = validOldPassword;+ PasswordFormat = newPasswordFormat;+ NewPassword = newPassword;+ OldPassword = oldPassword;}}}diff --git a/src/Business/Grand.Business.Customers/Services/CustomerManagerService.cs b/src/Business/Grand.Business.Customers/Services/CustomerManagerService.csindex 204adf6a5..d3d19dc29 100644--- a/src/Business/Grand.Business.Customers/Services/CustomerManagerService.cs+++ b/src/Business/Grand.Business.Customers/Services/CustomerManagerService.cs@@ -282,7 +282,7 @@ namespace Grand.Business.Customers.Servicesreturn result;}- if (request.ValidateRequest)+ if (request.ValidOldPassword){string oldPwd = "";switch (customer.PasswordFormatId)