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 <[email protected]>
This commit is contained in:
Miguel Cabrerizo
2023-08-10 14:19:39 +00:00
committed by GitHub
co-authored by Livio Spring
parent e5acfb76b3
commit 85423b73e9
@@ -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)