diff --git a/Iceshrimp.Frontend/Pages/Timeline.razor b/Iceshrimp.Frontend/Pages/Timeline.razor deleted file mode 100644 index 0f4e1775..00000000 --- a/Iceshrimp.Frontend/Pages/Timeline.razor +++ /dev/null @@ -1,40 +0,0 @@ -@page "/" -@attribute [Authorize] -@using Iceshrimp.Frontend.Core.Services -@using Microsoft.AspNetCore.Authorization -@using Microsoft.AspNetCore.Components.Authorization -@inject SessionService Session -@inject NavigationManager Navigation -

Timeline

-@if (_username != null) -{ - You are logged in as @_username - -

Authorization says you are @context.User.Identity!.Name

-
- -} -else -{ - Not logged in -} - - -@code { - private string? _username; - - protected override void OnInitialized() - { - if (Session.Current != null) - { - _username = Session.Current.Username; - } - } - - public void Logout() - { - Session.EndSession(); - Navigation.NavigateTo("/login"); - } - -} \ No newline at end of file