Skip to content

Commit

Permalink
fix status
Browse files Browse the repository at this point in the history
  • Loading branch information
broneks committed Dec 2, 2024
1 parent e1f600e commit 8aa19f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/resource/auth/handle_login.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func (mod *AuthModule) loginHandler(c echo.Context) error {
user, err := mod.userRepo.GetByEmail(ctx, req.Email)
if err != nil {
mod.server.Logger.Error(err.Error())
return c.JSON(http.StatusInternalServerError, types.SuccessRes{
return c.JSON(http.StatusBadRequest, types.SuccessRes{
Success: false,
Message: "Invalid email or password.",
})
Expand Down

0 comments on commit 8aa19f7

Please sign in to comment.