diff options
| author | ivarlovlie <git@ivarlovlie.no> | 2022-02-07 23:16:19 +0100 |
|---|---|---|
| committer | ivarlovlie <git@ivarlovlie.no> | 2022-02-07 23:16:19 +0100 |
| commit | a9a000f40cb89fe8b4734061ebd4ca590cccc600 (patch) | |
| tree | 10e6b971ffa1138d47a67cb28c9a451632e91c3c /src/server/Api/V1/BaseV1Route.cs | |
| parent | f59570acaecf2422001310a1d312565e8c61f263 (diff) | |
| download | bookmark-thing-a9a000f40cb89fe8b4734061ebd4ca590cccc600.tar.xz bookmark-thing-a9a000f40cb89fe8b4734061ebd4ca590cccc600.zip | |
chore: Cleanup warnings and unused code
Diffstat (limited to 'src/server/Api/V1/BaseV1Route.cs')
| -rw-r--r-- | src/server/Api/V1/BaseV1Route.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/Api/V1/BaseV1Route.cs b/src/server/Api/V1/BaseV1Route.cs index 9322bf9..766291e 100644 --- a/src/server/Api/V1/BaseV1Route.cs +++ b/src/server/Api/V1/BaseV1Route.cs @@ -13,8 +13,8 @@ public class BaseV1Route : ControllerBase /// User data for the currently logged on user. /// </summary> protected LoggedInV1User LoggedInUser => new() { - Id = User.FindFirstValue(ClaimTypes.NameIdentifier).ToGuid(), - Username = User.Identity?.Name, + Id = User.FindFirstValue(AppClaims.USER_ID).ToGuid(), + Username = User.FindFirstValue(AppClaims.NAME), }; protected bool IsApiCall() { |
