diff --git a/web/login.go b/web/login.go index 0a9fc93..2ead5bb 100644 --- a/web/login.go +++ b/web/login.go @@ -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{