summaryrefslogtreecommitdiffstats
path: root/src/server/Api/Internal/BaseInternalRoute.cs
diff options
context:
space:
mode:
authorivarlovlie <git@ivarlovlie.no>2022-02-07 23:16:19 +0100
committerivarlovlie <git@ivarlovlie.no>2022-02-07 23:16:19 +0100
commita9a000f40cb89fe8b4734061ebd4ca590cccc600 (patch)
tree10e6b971ffa1138d47a67cb28c9a451632e91c3c /src/server/Api/Internal/BaseInternalRoute.cs
parentf59570acaecf2422001310a1d312565e8c61f263 (diff)
downloadbookmark-thing-a9a000f40cb89fe8b4734061ebd4ca590cccc600.tar.xz
bookmark-thing-a9a000f40cb89fe8b4734061ebd4ca590cccc600.zip
chore: Cleanup warnings and unused code
Diffstat (limited to 'src/server/Api/Internal/BaseInternalRoute.cs')
-rw-r--r--src/server/Api/Internal/BaseInternalRoute.cs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/server/Api/Internal/BaseInternalRoute.cs b/src/server/Api/Internal/BaseInternalRoute.cs
index 6c0a2d9..b6b532f 100644
--- a/src/server/Api/Internal/BaseInternalRoute.cs
+++ b/src/server/Api/Internal/BaseInternalRoute.cs
@@ -5,12 +5,11 @@ namespace IOL.BookmarkThing.Server.Api.Internal;
[ApiController]
public class BaseInternalRoute : ControllerBase
{
-
/// <summary>
/// User data for the currently logged on user.
/// </summary>
protected LoggedInInternalUser LoggedInUser => new() {
- Id = User.FindFirstValue(ClaimTypes.NameIdentifier).ToGuid(),
- Username = User.Identity?.Name,
+ Id = User.FindFirstValue(AppClaims.USER_ID).ToGuid(),
+ Username = User.FindFirstValue(AppClaims.NAME),
};
}