Skip to content

Commit

Permalink
rest: follow up from previous commit, make sure the username is corre…
Browse files Browse the repository at this point in the history
…ctly formatted for external accounts
  • Loading branch information
glpatcern committed Sep 17, 2024
1 parent aa7e67b commit a46908a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion user/rest.go
Original file line number Diff line number Diff line change
Expand Up @@ -224,12 +224,12 @@ func (m *manager) parseAndCacheUser(ctx context.Context, i *Identity) (*userpb.U
Idp: m.conf.IDProvider,
Type: i.UserType(),
},
Username: i.Upn,
Mail: i.PrimaryAccountEmail,
DisplayName: i.DisplayName,
UidNumber: int64(i.UID),
GidNumber: int64(i.GID),
}
u.Username = utils.FormatUserID(u.Id)

if err := m.cacheUserDetails(u); err != nil {
log.Error().Err(err).Msg("rest: error caching user details")
Expand Down

0 comments on commit a46908a

Please sign in to comment.