mirror of
https://github.com/juanfont/headscale.git
synced 2025-10-21 03:09:43 +00:00
add new user fields to grpc and list command (#2202)
Updates #2166 Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
This commit is contained in:
@@ -100,11 +100,16 @@ func (u *User) TailscaleUserProfile() tailcfg.UserProfile {
|
||||
}
|
||||
}
|
||||
|
||||
func (n *User) Proto() *v1.User {
|
||||
func (u *User) Proto() *v1.User {
|
||||
return &v1.User{
|
||||
Id: strconv.FormatUint(uint64(n.ID), util.Base10),
|
||||
Name: n.Name,
|
||||
CreatedAt: timestamppb.New(n.CreatedAt),
|
||||
Id: strconv.FormatUint(uint64(u.ID), util.Base10),
|
||||
Name: u.Name,
|
||||
CreatedAt: timestamppb.New(u.CreatedAt),
|
||||
DisplayName: u.DisplayName,
|
||||
Email: u.Email,
|
||||
ProviderId: u.ProviderIdentifier,
|
||||
Provider: u.Provider,
|
||||
ProfilePicUrl: u.ProfilePicURL,
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user