Unverified Commit 833fd238 authored by Athurg Gooth's avatar Athurg Gooth Committed by GitHub

fix: OpenID was disappear sometimes (#1886)

Fix openid was disapear sometimes
parent d46126c5
...@@ -74,10 +74,10 @@ func (s *APIV1Service) registerSystemRoutes(g *echo.Group) { ...@@ -74,10 +74,10 @@ func (s *APIV1Service) registerSystemRoutes(g *echo.Group) {
return echo.NewHTTPError(http.StatusInternalServerError, "Failed to find host user").SetInternal(err) return echo.NewHTTPError(http.StatusInternalServerError, "Failed to find host user").SetInternal(err)
} }
if hostUser != nil { if hostUser != nil {
// data desensitize
hostUser.OpenID = ""
hostUser.Email = ""
systemStatus.Host = converUserFromStore(hostUser) systemStatus.Host = converUserFromStore(hostUser)
// data desensitize
systemStatus.Host.OpenID = ""
systemStatus.Host.Email = ""
} }
systemSettingList, err := s.Store.ListSystemSettings(ctx, &store.FindSystemSetting{}) systemSettingList, err := s.Store.ListSystemSettings(ctx, &store.FindSystemSetting{})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment