Skip to content

Commit

Permalink
added error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
heyyakash committed Aug 31, 2024
1 parent ce88d41 commit 7573a27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/internal/handler/auth.handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func LoginUser() gin.HandlerFunc {
return func(ctx *gin.Context) {
var req modals.Users
if err := ctx.BindJSON(&req); err != nil {
ctx.JSON(http.StatusBadRequest, utils.ResponseGenerator("Bad Fields", false))
ctx.JSON(http.StatusBadRequest, utils.ResponseGenerator("Bad Fields Provided", false))
return
}
user, err := db.Store.GetUserByEmail(req.Email)
Expand Down

0 comments on commit 7573a27

Please sign in to comment.