From d6ec17351190f1729c40a6fa5345793d0ce9ba25 Mon Sep 17 00:00:00 2001 From: MMichels Date: Tue, 31 Oct 2023 22:07:16 -0300 Subject: [PATCH] =?UTF-8?q?Fix(Authentication):=20Corre=C3=A7=C3=A3o=20err?= =?UTF-8?q?o=20banco=20de=20dados?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Browl.Api/Controllers/LoginController.cs | 2 +- Browl.Api/Views/Login/Index.cshtml | 2 +- Browl.Domain/Models/User.cs | 2 +- Browl.Service/Services/AuthenticationService.cs | 1 + Browl.Service/Validators/Login/AuthenticationValidator.cs | 2 +- Infra/Queries/UserQueries.cs | 4 ++-- 6 files changed, 7 insertions(+), 6 deletions(-) diff --git a/Browl.Api/Controllers/LoginController.cs b/Browl.Api/Controllers/LoginController.cs index 9191603..aa6170b 100644 --- a/Browl.Api/Controllers/LoginController.cs +++ b/Browl.Api/Controllers/LoginController.cs @@ -18,7 +18,7 @@ public IActionResult Index() return View(); } - [HttpPost("")] + [HttpPost] public async Task AuthenticateAsync(AutenticationCommand command) { var authenticated = await _authenticationService.Authenticate(command); diff --git a/Browl.Api/Views/Login/Index.cshtml b/Browl.Api/Views/Login/Index.cshtml index d0276f5..a52b416 100644 --- a/Browl.Api/Views/Login/Index.cshtml +++ b/Browl.Api/Views/Login/Index.cshtml @@ -6,7 +6,7 @@

Login

-
+