Skip to content

Commit

Permalink
fix: OpenID was disappear sometimes (#1886)
Browse files Browse the repository at this point in the history
Fix openid was disapear sometimes
  • Loading branch information
athurg authored Jul 3, 2023
1 parent d46126c commit 833fd23
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions api/v1/system.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@ func (s *APIV1Service) registerSystemRoutes(g *echo.Group) {
return echo.NewHTTPError(http.StatusInternalServerError, "Failed to find host user").SetInternal(err)
}
if hostUser != nil {
// data desensitize
hostUser.OpenID = ""
hostUser.Email = ""
systemStatus.Host = converUserFromStore(hostUser)
// data desensitize
systemStatus.Host.OpenID = ""
systemStatus.Host.Email = ""
}

systemSettingList, err := s.Store.ListSystemSettings(ctx, &store.FindSystemSetting{})
Expand Down

0 comments on commit 833fd23

Please sign in to comment.