Skip to content

Commit 07552ba

Browse files
committed
Fixed Status
1 parent b27ce4c commit 07552ba

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

NextTechEvent/NextTechEvent/Components/ConferenceStatus.razor

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
if (user?.Identity?.Name!=null && user.Identity.IsAuthenticated)
2828
{
29-
var id = user?.Claims.FirstOrDefault(c => c.Type == "sid")?.Value;
29+
var id = user?.Claims.FirstOrDefault(c => c.Type == "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier")?.Value;
3030
var savedstatus = await _api.GetStatusAsync(ConferenceId, id);
3131
if (savedstatus != null)
3232
{

NextTechEvent/NextTechEvent/Pages/Profile/CalendarPage.razor

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ else
2929
ArgumentNullException.ThrowIfNull(authenticationStateTask);
3030
var authState = await authenticationStateTask;
3131
var user = authState.User;
32-
var id = user?.Claims.FirstOrDefault(c => c.Type == "sid")?.Value;
32+
var id = user?.Claims.FirstOrDefault(c => c.Type == "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier")?.Value;
3333
Calendar = await _api.GetCalendarByUserIdAsync(id);
3434
UpdateUrl();
3535
}

0 commit comments

Comments
 (0)