From 85423b73e9b6f772dfbf5dea455e26d6f31ee685 Mon Sep 17 00:00:00 2001 From: Miguel Cabrerizo <30386061+doncicuto@users.noreply.github.com> Date: Thu, 10 Aug 2023 16:19:39 +0200 Subject: [PATCH] fix: avatar missing on login after going back (#6238) * fix: avatar missing on login after going back * fix: apply @livio-a suggestion --------- Co-authored-by: Livio Spring --- .../auth/repository/eventsourcing/eventstore/auth_request.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/auth/repository/eventsourcing/eventstore/auth_request.go b/internal/auth/repository/eventsourcing/eventstore/auth_request.go index 9a4bdfc993..80be2a8e3b 100644 --- a/internal/auth/repository/eventsourcing/eventstore/auth_request.go +++ b/internal/auth/repository/eventsourcing/eventstore/auth_request.go @@ -946,6 +946,8 @@ func (repo *AuthRequestRepo) nextSteps(ctx context.Context, request *domain.Auth if err != nil { return nil, err } + request.DisplayName = userSession.DisplayName + request.AvatarKey = userSession.AvatarKey isInternalLogin := request.SelectedIDPConfigID == "" && userSession.SelectedIDPConfigID == "" idps, err := checkExternalIDPsOfUser(ctx, repo.IDPUserLinksProvider, user.ID)