fix: OpenID was disappear sometimes (#1886)

Fix openid was disapear sometimes
pull/1891/head
Athurg Gooth 2 years ago committed by GitHub
parent d46126c5c3
commit 833fd23820
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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{})

Loading…
Cancel
Save