mirror of
https://github.com/andwati/zitadel.git
synced 2026-12-02 00:48:52 +00:00
chore(console): remove first and lastName fallback from user (#5629)
* chore(console): remove first and lastName fallback from user * use display name and ensure it's set without required name fields * add user type to user grant and memberships responses * contributor, members * fix avatar display checks --------- Co-authored-by: Livio Spring <[email protected]>
This commit is contained in:
co-authored by
Livio Spring
parent
8bf36301ed
commit
1c1d66cbe8
@@ -254,3 +254,16 @@ func ExternalIDPViewsToExternalIDPs(externalIDPs []*query.IDPUserLink) []*domain
|
||||
}
|
||||
return idps
|
||||
}
|
||||
|
||||
func TypeToPb(userType domain.UserType) user_pb.Type {
|
||||
switch userType {
|
||||
case domain.UserTypeHuman:
|
||||
return user_pb.Type_TYPE_HUMAN
|
||||
case domain.UserTypeMachine:
|
||||
return user_pb.Type_TYPE_MACHINE
|
||||
case domain.UserTypeUnspecified:
|
||||
return user_pb.Type_TYPE_UNSPECIFIED
|
||||
default:
|
||||
return user_pb.Type_TYPE_UNSPECIFIED
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user