mirror of
https://github.com/usememos/memos.git
synced 2024-12-25 20:32:18 +03:00
fix: cannot register in production (#91)
This commit is contained in:
parent
08210d55c3
commit
a62c982a3d
@ -29,8 +29,10 @@ func (s *Server) registerSystemRoutes(g *echo.Group) {
|
|||||||
return echo.NewHTTPError(http.StatusInternalServerError, "Failed to find owner user").SetInternal(err)
|
return echo.NewHTTPError(http.StatusInternalServerError, "Failed to find owner user").SetInternal(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
// data desensitize
|
if ownerUser != nil {
|
||||||
ownerUser.OpenID = ""
|
// data desensitize
|
||||||
|
ownerUser.OpenID = ""
|
||||||
|
}
|
||||||
|
|
||||||
systemStatus := api.SystemStatus{
|
systemStatus := api.SystemStatus{
|
||||||
Owner: ownerUser,
|
Owner: ownerUser,
|
||||||
|
Loading…
Reference in New Issue
Block a user