Skip to content

The only tool you need to know what is happening and how to fix it.

Update auth.controller.go

dduxd6af72de1c8e
diff --git a/backend/app/controllers/auth.controller.go b/backend/app/controllers/auth.controller.go
index 6ddb4f3c..3273d1cf 100644
--- a/backend/app/controllers/auth.controller.go
+++ b/backend/app/controllers/auth.controller.go
@@ -33,7 +33,7 @@ func (a authController) HasOrganizations(c *gin.Context) {
func (a authController) Login(c *gin.Context) {
var request models.LoginRequest
if err := c.ShouldBindJSON(&request); err != nil {
- c.JSON(http.StatusBadRequest, gin.H{"error": "Invalid request body"})
+ c.JSON(http.StatusUnauthorized, gin.H{"error": "Invalid email or password"})
return
}