summaryrefslogtreecommitdiff
path: root/Pages/Login.razor
diff options
context:
space:
mode:
authorJake Mannens <jake@asger.xyz>2026-05-22 00:52:16 +1000
committerJake Mannens <jake@asger.xyz>2026-05-23 22:22:55 +1000
commit12eaa5814ef20b0910e8d64a753378b6f6797989 (patch)
tree062cf477c29054e0f089cb80f0cd79a9f3b7ccd9 /Pages/Login.razor
parent6de5d7f5364fe1d54703da6d6b7cb08ea26e939f (diff)
Initial commitwasm-initial
Diffstat (limited to 'Pages/Login.razor')
-rw-r--r--Pages/Login.razor17
1 files changed, 0 insertions, 17 deletions
diff --git a/Pages/Login.razor b/Pages/Login.razor
deleted file mode 100644
index 723a78a..0000000
--- a/Pages/Login.razor
+++ /dev/null
@@ -1,17 +0,0 @@
-@page "/Login"
-@inject NavigationManager navigationManager
-
-<PageTitle>HyperBooru Login</PageTitle>
-
-<div/>
-
-@code {
- [CascadingParameter]
- public Task<AuthenticationState> AuthenticationState{ get; set; }
-
- protected override void OnInitialized() {
- var authState = AuthenticationState.GetAwaiter().GetResult();
- if(authState!.User.Identity?.IsAuthenticated ?? false)
- navigationManager.NavigateTo("/");
- }
-} \ No newline at end of file