From 65ba3a64350b1cbca66c7d7ee6b3b1ad6ab68dcb Mon Sep 17 00:00:00 2001 From: john Date: Sun, 15 Jun 2025 19:14:49 +0200 Subject: [PATCH] change login failure status code --- Femto.Api/Controllers/Auth/AuthController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Femto.Api/Controllers/Auth/AuthController.cs b/Femto.Api/Controllers/Auth/AuthController.cs index 5322493..e45e73c 100644 --- a/Femto.Api/Controllers/Auth/AuthController.cs +++ b/Femto.Api/Controllers/Auth/AuthController.cs @@ -35,7 +35,7 @@ public class AuthController( ); if (user is null) - return Forbid(); + return this.BadRequest(); var session = await authService.CreateStrongSession(user.Id);