added login stuff

This commit is contained in:
slinky55
2026-04-25 22:45:59 -05:00
parent 03ca74d85a
commit e1d437fd49
51 changed files with 2851 additions and 13 deletions

View File

@@ -0,0 +1,28 @@
@inherits LayoutComponentBase
@layout ApplianceRepair.Components.Layout.MainLayout
@inject NavigationManager NavigationManager
@if (HttpContext is null)
{
<p>Loading...</p>
}
else
{
@Body
}
@code {
[CascadingParameter]
private HttpContext? HttpContext { get; set; }
protected override void OnParametersSet()
{
if (HttpContext is null)
{
// If this code runs, we're currently rendering in interactive mode, so there is no HttpContext.
// The identity pages need to set cookies, so they require an HttpContext. To achieve this we
// must transition back from interactive mode to a server-rendered page.
NavigationManager.Refresh(forceReload: true);
}
}
}