From 51518d900910023e91ff667c53daf237d6dafddc Mon Sep 17 00:00:00 2001 From: Thareek Anvar M Date: Tue, 28 Feb 2023 09:34:52 +0530 Subject: [PATCH] fix bug --- server/auth.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/auth.go b/server/auth.go index d2ff3308..624806f3 100644 --- a/server/auth.go +++ b/server/auth.go @@ -31,10 +31,10 @@ func (s *Server) registerAuthRoutes(g *echo.Group) { } user, err := s.Store.FindUser(ctx, userFind) if err != nil && common.ErrorCode(err) != common.NotFound { - return echo.NewHTTPError(http.StatusInternalServerError, fmt.Sprintf("Your login credentials are incorrect please check")).SetInternal(err) + return echo.NewHTTPError(http.StatusInternalServerError, "Your login credentials are incorrect please check").SetInternal(err) } if user == nil { - return echo.NewHTTPError(http.StatusUnauthorized, fmt.Sprintf("Your login credentials are incorrect please check")) + return echo.NewHTTPError(http.StatusUnauthorized, "Your login credentials are incorrect please check") } else if user.RowStatus == api.Archived { return echo.NewHTTPError(http.StatusForbidden, fmt.Sprintf("User has been archived with username %s", signin.Username)) }