uselagoon / lagoon-ui

Apache License 2.0
7 stars 2 forks source link

fix: use email address in profile, not username #218

Closed shreddedbacon closed 7 months ago

shreddedbacon commented 7 months ago

Lagoon currently displays the username of the keycloak user in the UI, this field is unchangeable by the user, and Lagoon does not use this field when interacting with users, it uses the email field see https://github.com/uselagoon/lagoon/issues/3656

This changes the field to display the email address from the token rather than the preferred_username. This should only be merged if https://github.com/uselagoon/lagoon/issues/3657 is also merged which fixes all the underlying resolver code to use email instead of the username.