diff --git a/MadWorld/MadWorld.Backend.Identity/Endpoints/IdentityEndpoints.cs b/MadWorld/MadWorld.Backend.Identity/Endpoints/IdentityEndpoints.cs index c3a3c73..09c8711 100644 --- a/MadWorld/MadWorld.Backend.Identity/Endpoints/IdentityEndpoints.cs +++ b/MadWorld/MadWorld.Backend.Identity/Endpoints/IdentityEndpoints.cs @@ -26,14 +26,14 @@ public static void AddIdentityEndpoints(this WebApplication app) account.MapPost("/JwtLogin", ([FromBody] JwtLoginRequest request, [FromServices] PostJwtLoginUseCase useCase, HttpContext context) => - useCase.PostJwtLogin(request, context.Request.GetBaseUrl())) + useCase.PostJwtLogin(request, context.Request.GetOriginUrl())) .WithName("JwtLogin") .WithOpenApi() .AllowAnonymous(); account.MapPost("/JwtRefresh", ([FromBody] JwtRefreshRequest request, [FromServices] PostJwtRefreshUseCase useCase, HttpContext context) => - useCase.PostJwtRefresh(request, context.Request.GetBaseUrl())) + useCase.PostJwtRefresh(request, context.Request.GetOriginUrl())) .WithName("JwtRefresh") .WithOpenApi() .AllowAnonymous(); diff --git a/MadWorld/MadWorld.Backend.Identity/Extensions/RequestExtensions.cs b/MadWorld/MadWorld.Backend.Identity/Extensions/RequestExtensions.cs index 8bc8aba..c9fa2b7 100644 --- a/MadWorld/MadWorld.Backend.Identity/Extensions/RequestExtensions.cs +++ b/MadWorld/MadWorld.Backend.Identity/Extensions/RequestExtensions.cs @@ -4,7 +4,7 @@ namespace MadWorld.Backend.Identity.Extensions; public static class RequestExtensions { - public static string GetBaseUrl(this HttpRequest request) + public static string GetOriginUrl(this HttpRequest request) { request.Headers.TryGetValue("Origin", out var originValues); var url = originValues.Count != 0 ? originValues[0]! : string.Empty; diff --git a/MadWorld/MadWorld.Frontend.Admin/Pages/UserManagement/User.razor b/MadWorld/MadWorld.Frontend.Admin/Pages/UserManagement/User.razor index 584f46a..b271188 100644 --- a/MadWorld/MadWorld.Frontend.Admin/Pages/UserManagement/User.razor +++ b/MadWorld/MadWorld.Frontend.Admin/Pages/UserManagement/User.razor @@ -46,15 +46,25 @@
Sessions
- - - - - - -
- +
+
+
+ + + + + + +
+
+
+
+
+
+ +
+