Initial commit
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
@page "/"
|
||||
@using Microsoft.AspNetCore.Authorization
|
||||
|
||||
@rendermode InteractiveServer
|
||||
|
||||
@attribute [Authorize]
|
||||
|
||||
<PageTitle>Home</PageTitle>
|
||||
|
||||
<MudDialogProvider />
|
||||
<MudSnackbarProvider />
|
||||
<h1>Hello</h1>
|
||||
|
||||
|
||||
<AuthorizeView>
|
||||
<NotAuthorized>
|
||||
Vui lòng đăng nhập
|
||||
</NotAuthorized>
|
||||
<Authorized>
|
||||
Hello @context.User.Identity?.Name!
|
||||
</Authorized>
|
||||
</AuthorizeView>
|
||||
|
||||
|
||||
@code {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user