first commit -push

This commit is contained in:
dungtt
2025-10-15 15:15:53 +07:00
parent 674ae395be
commit a9577c5756
885 changed files with 74595 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
@page "/user"
@attribute [Authorize]
@using Microsoft.AspNetCore.Components.WebAssembly.Authentication
@inject NavigationManager Navigation
<AuthorizeView>
<Authorized>
<div class="d-flex flex-column m-3">
<h3>User <b>@context.User.Identity?.Name</b></h3>
<div>
<MudButton Variant="Variant.Filled" StartIcon="@Icons.Material.Filled.Logout" IconColor="Color.Secondary" Size="Size.Large" OnClick="BeginLogOut">Logout</MudButton>
</div>
</div>
</Authorized>
</AuthorizeView>
@code {
public void BeginLogOut()
{
Navigation.NavigateToLogout("authentication/logout");
}
}