mirror of
https://github.com/usememos/memos.git
synced 2025-09-14 01:34:49 +08:00
fix: OpenID was disappear sometimes (#1886)
Fix openid was disapear sometimes
This commit is contained in:
parent
d46126c5c3
commit
833fd23820
1 changed files with 3 additions and 3 deletions
|
@ -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{})
|
||||
|
|
Loading…
Add table
Reference in a new issue