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.

Bugfix in TokenWebController to LoginWebModel (#319)

Ramnatha0e6f86a037f
diff --git a/src/API/Grand.Api/Controllers/TokenWebController.cs b/src/API/Grand.Api/Controllers/TokenWebController.cs
index 448287722..fec2cfa7e 100644
--- a/src/API/Grand.Api/Controllers/TokenWebController.cs
+++ b/src/API/Grand.Api/Controllers/TokenWebController.cs
@@ -63,7 +63,7 @@ namespace Grand.Api.Controllers
[AllowAnonymous]
[IgnoreAntiforgeryToken]
[HttpPost]
- public async Task<IActionResult> Login([FromBody] LoginModel model)
+ public async Task<IActionResult> Login([FromBody] LoginWebModel model)
{
if (!ModelState.IsValid)
return BadRequest(ModelState);