Skip to content

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.

Fix API - LoginValidator

KrzysztofPajak382836ad944c
diff --git a/src/API/Grand.Api/Models/Common/LoginModel.cs b/src/API/Grand.Api/Models/Common/LoginModel.cs
index 0e52fce6c..5b187d986 100644
--- a/src/API/Grand.Api/Models/Common/LoginModel.cs
+++ b/src/API/Grand.Api/Models/Common/LoginModel.cs
@@ -1,6 +1,6 @@
namespace Grand.Api.Models.Common
{
- public class LoginWebModel
+ public class LoginModel
{
public string Email { get; set; }
public string Password { get; set; }
diff --git a/src/API/Grand.Api/Models/Common/LoginWebModel.cs b/src/API/Grand.Api/Models/Common/LoginWebModel.cs
index 5b187d986..0e52fce6c 100644
--- a/src/API/Grand.Api/Models/Common/LoginWebModel.cs
+++ b/src/API/Grand.Api/Models/Common/LoginWebModel.cs
@@ -1,6 +1,6 @@
namespace Grand.Api.Models.Common
{
- public class LoginModel
+ public class LoginWebModel
{
public string Email { get; set; }
public string Password { get; set; }
diff --git a/src/API/Grand.Api/Validators/Common/LoginWebValidator.cs b/src/API/Grand.Api/Validators/Common/LoginWebValidator.cs
index ae0aabefa..00ed02662 100644
--- a/src/API/Grand.Api/Validators/Common/LoginWebValidator.cs
+++ b/src/API/Grand.Api/Validators/Common/LoginWebValidator.cs
@@ -8,10 +8,10 @@ using System.Collections.Generic;
namespace Grand.Api.Validators.Common
{
- public class LoginWebValidator : BaseGrandValidator<LoginModel>
+ public class LoginWebValidator : BaseGrandValidator<LoginWebModel>
{
public LoginWebValidator(
- IEnumerable<IValidatorConsumer<LoginModel>> validators,
+ IEnumerable<IValidatorConsumer<LoginWebModel>> validators,
GrandWebApiConfig apiConfig,
ICustomerService customerService,
ICustomerManagerService customerManagerService)