17 lines
490 B
Plaintext
17 lines
490 B
Plaintext
@page "/"
|
|
|
|
<PageTitle>Gremlin BlazorServer</PageTitle>
|
|
<h1>Gremlin BlazorServer</h1>
|
|
<h2>Welcome to new App!</h2>
|
|
<AuthorizeView>
|
|
<Authorized>
|
|
@if(context != null && context.User != null && context.User.Identity != null)
|
|
{
|
|
<h3>You are logged in as @context.User.Identity.Name</h3>
|
|
}
|
|
</Authorized>
|
|
<NotAuthorized>
|
|
<h3>Authentication Failure!</h3>
|
|
<p>You're not signed in. Please click on the upper right to either register or log in.</p>
|
|
</NotAuthorized>
|
|
</AuthorizeView> |