From 4b7e72b343b88e03ff6647b2d54fb0e9297636d4 Mon Sep 17 00:00:00 2001 From: Pat Hartl Date: Mon, 16 Oct 2023 20:17:59 -0500 Subject: [PATCH] Require authentication for profile pages --- LANCommander/Pages/Profile/ChangePassword.razor | 1 + LANCommander/Pages/Profile/Index.razor | 1 + LANCommander/Pages/Profile/Saves.razor | 1 + 3 files changed, 3 insertions(+) diff --git a/LANCommander/Pages/Profile/ChangePassword.razor b/LANCommander/Pages/Profile/ChangePassword.razor index 8ae995d..6ca2120 100644 --- a/LANCommander/Pages/Profile/ChangePassword.razor +++ b/LANCommander/Pages/Profile/ChangePassword.razor @@ -4,6 +4,7 @@ @inject UserManager UserManager @inject IMessageService MessageService @inject AuthenticationStateProvider AuthenticationStateProvider +@attribute [Authorize] diff --git a/LANCommander/Pages/Profile/Index.razor b/LANCommander/Pages/Profile/Index.razor index 36df5f7..b594adf 100644 --- a/LANCommander/Pages/Profile/Index.razor +++ b/LANCommander/Pages/Profile/Index.razor @@ -7,6 +7,7 @@ @inject AuthenticationStateProvider AuthenticationStateProvider @inject NavigationManager NavigationManager @inject IJSRuntime JSRuntime +@attribute [Authorize] diff --git a/LANCommander/Pages/Profile/Saves.razor b/LANCommander/Pages/Profile/Saves.razor index 5374c29..3f37c53 100644 --- a/LANCommander/Pages/Profile/Saves.razor +++ b/LANCommander/Pages/Profile/Saves.razor @@ -8,6 +8,7 @@ @inject AuthenticationStateProvider AuthenticationStateProvider @inject GameSaveService GameSaveService @inject IJSRuntime JSRuntime +@attribute [Authorize]