Skip to content

Instantly share code, notes, and snippets.

@explorer14
Created August 24, 2020 18:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save explorer14/8e85165758cad9a9077f86c1c352c333 to your computer and use it in GitHub Desktop.
Save explorer14/8e85165758cad9a9077f86c1c352c333 to your computer and use it in GitHub Desktop.
<AuthorizeView>
<Authorized>
@{
navMgr.NavigateTo("/");
}
</Authorized>
<NotAuthorized>
<MatCard class="mat-card">
<MatCardContent>
<div class="mat-card-content">
<MatHeadline6 class="mat-card-clean-margin">
E-mail
</MatHeadline6>
<MatTextField Class="mat-card-field" @bind-Value="Username"></MatTextField>
<MatHeadline6 class="mat-card-clean-margin">
Password
</MatHeadline6>
<MatTextField Class="mat-card-field" Type="password" @bind-Value="Password"></MatTextField>
</div>
</MatCardContent>
<MatCardActions Class="mat-card-action">
<MatButton Raised="true"
OnClick="@(async args => await AuthenticateUser())">Login</MatButton>
</MatCardActions>
</MatCard>
</NotAuthorized>
</AuthorizeView>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment