Split creators out of identity
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
using System.Security.Claims;
|
||||
|
||||
using Hutopy.Application.Common.Interfaces;
|
||||
using Hutopy.Application.Common.Interfaces;
|
||||
using Hutopy.Web.Common;
|
||||
|
||||
namespace Hutopy.Web.Services;
|
||||
|
||||
@@ -8,5 +7,5 @@ public class CurrentUser(
|
||||
IHttpContextAccessor httpContextAccessor)
|
||||
: IUser
|
||||
{
|
||||
public string? Id => httpContextAccessor.HttpContext?.User?.FindFirstValue(ClaimTypes.NameIdentifier);
|
||||
public Guid? Id => httpContextAccessor.HttpContext?.User.GetUserId();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user