diff --git a/Endpoint/Controllers/V1/AuthController.cs b/Endpoint/Controllers/V1/AuthController.cs index 075f298..2fb1e7a 100644 --- a/Endpoint/Controllers/V1/AuthController.cs +++ b/Endpoint/Controllers/V1/AuthController.cs @@ -43,7 +43,7 @@ public class AuthController(IOptionsSnapshot user, AuthService auth, Pass if (!userEntity.Username.Equals(request.Username, StringComparison.OrdinalIgnoreCase) && !userEntity.Email.Equals(request.Username, StringComparison.OrdinalIgnoreCase)) - return BadRequest("Invalid username/email or password"); + return Unauthorized("Authentication failed. Please check your credentials."); var tokenResult = await auth.LoginAsync( GetCookieParams(),