Skip to content

Commit fce3f7a

Browse files
#178 Add pictureId property to UserInfo endpoint result
1 parent 354c5b0 commit fce3f7a

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/api/Shrooms.Presentation.Api/Controllers/AccountController.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,8 @@ private async Task<LoggedInUserInfoViewModel> GetLoggedInUserInfoAsync()
458458
Permissions = permissions,
459459
Impersonated = claimsIdentity?.Claims.Any(c => c.Type == WebApiConstants.ClaimUserImpersonation && c.Value == true.ToString()) ?? false,
460460
CultureCode = user.CultureCode,
461-
TimeZone = user.TimeZone
461+
TimeZone = user.TimeZone,
462+
PictureId = user.PictureId
462463
};
463464

464465
return userInfo;

src/api/Shrooms.Presentation.WebViewModels/Models/AccountModels/LoggedInUserInfoViewModel.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,7 @@ public class LoggedInUserInfoViewModel : ExternalUserInfoViewModel
2323
public string CultureCode { get; set; }
2424

2525
public string TimeZone { get; set; }
26+
27+
public string PictureId { get; set; }
2628
}
2729
}

0 commit comments

Comments
 (0)