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.

Minor changes

support1aa71628f1d3
diff --git a/src/Business/Grand.Business.Authentication/Services/JwtBearerCustomerAuthenticationService.cs b/src/Business/Grand.Business.Authentication/Services/JwtBearerCustomerAuthenticationService.cs
index 93118cb52..41aee734c 100644
--- a/src/Business/Grand.Business.Authentication/Services/JwtBearerCustomerAuthenticationService.cs
+++ b/src/Business/Grand.Business.Authentication/Services/JwtBearerCustomerAuthenticationService.cs
@@ -47,7 +47,7 @@ namespace Grand.Business.Authentication.Services
return false;
}
- if (customer == null || !customer.Active || customer.Deleted)
+ if (!customer.Active || customer.Deleted)
{
_errorMessage = "Customer not exists/or not active in the customer table";
return false;