feat: open api for get memos

This commit is contained in:
email
2022-02-06 00:25:41 +08:00
parent 017bbfa6d6
commit c77996a891
4 changed files with 48 additions and 6 deletions

View File

@ -30,8 +30,7 @@ func (s *Server) registerAuthRoutes(g *echo.Group) {
// Compare the stored password
if login.Password != user.Password {
// If the two passwords don't match, return a 401 status.
return echo.NewHTTPError(http.StatusUnauthorized, "Incorrect password").SetInternal(err)
return echo.NewHTTPError(http.StatusBadRequest, "Incorrect password").SetInternal(err)
}
err = setUserSession(c, user)