Skip to content

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

fix: pw validation

ddux447c27979f1b
diff --git a/backend/app/controllers/auth.controller.go b/backend/app/controllers/auth.controller.go
index c1388a52..6ddb4f3c 100644
--- a/backend/app/controllers/auth.controller.go
+++ b/backend/app/controllers/auth.controller.go
@@ -50,7 +50,7 @@ func (a authController) Login(c *gin.Context) {
}
if !services.CheckPassword(request.Password, user.Password) {
- c.AbortWithError(http.StatusInternalServerError, err)
+ c.JSON(http.StatusUnauthorized, gin.H{"error": "Invalid email or password"})
return
}