mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
feat: open api for get memos
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user