Skip to content

Commit

Permalink
feat: login error message
Browse files Browse the repository at this point in the history
  • Loading branch information
pupilcc committed Mar 30, 2024
1 parent 3071a51 commit 486c80b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func login(c echo.Context) error {

// Check in your db if the user exists or not
if username != adminUsername || password != adminPassword {
return echo.ErrUnauthorized
return echo.NewHTTPError(http.StatusUnauthorized, "wrong username or password")
}

claims := &JWTCustomClaims{
Expand Down

0 comments on commit 486c80b

Please sign in to comment.