mirror of
https://github.com/usememos/memos.git
synced 2024-12-25 12:23:09 +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)
|
||||
}
|
||||
|
||||
// data desensitize
|
||||
ownerUser.OpenID = ""
|
||||
if ownerUser != nil {
|
||||
// data desensitize
|
||||
ownerUser.OpenID = ""
|
||||
}
|
||||
|
||||
systemStatus := api.SystemStatus{
|
||||
Owner: ownerUser,
|
||||
|
Loading…
Reference in New Issue
Block a user