Working on auth

This commit is contained in:
max 2024-10-14 15:31:04 +02:00
parent f89b9edbc9
commit 6e928ba4e3
7 changed files with 15 additions and 4 deletions

@ -1 +1 @@
Subproject commit 17f69824eb3a854be545c3517c8ecd4bb63eab7b
Subproject commit d98634d8887e0bab7add7f2181c2cdd5db77e1d2

View File

@ -1,7 +1,6 @@
@page "/Auth/Login"
@using SharpRSS.Blazor.Extensions
@inject NavigationManager NavigationManager
@attribute [AllowAnonymous]
<PageTitle>Login | SharpRSS</PageTitle>

View File

@ -0,0 +1,6 @@
@layout EmptyLayout
@attribute [AllowAnonymous]
@code {
}

View File

@ -0,0 +1,5 @@
@layout MainLayout
@code {
}

View File

@ -13,9 +13,9 @@
</AuthorizeRouteView>
</Found>
<NotFound>
<PageTitle>Not found!</PageTitle>
<LayoutView Layout="@typeof(EmptyLayout)">
@*TODO: Manage not found*@
<PageTitle>Not found!</PageTitle>
<p>Page not found!</p>
</LayoutView>
</NotFound>

View File

@ -80,6 +80,7 @@ app.UseAntiforgery();
app.UseBasedServerAuth();
app.MapRazorComponents<App>()
.AddInteractiveServerRenderMode();
.AddInteractiveServerRenderMode()
.AllowAnonymous();
app.Run();