39 lines
1.1 KiB
Plaintext
39 lines
1.1 KiB
Plaintext
@page "/twostepverification"
|
|
|
|
|
|
<EditForm Model="@_twoFactorVerificationDto" OnValidSubmit="Submit" FormName="ForgotForm">
|
|
<DataAnnotationsValidator />
|
|
<MudGrid>
|
|
<MudItem xs="12" sm="7">
|
|
<MudCard>
|
|
<MudCardContent>
|
|
<MudTextField Label="Email" Class="mt-3"
|
|
@bind-Value="_twoFactorVerificationDto.TwoFactorToken" For="@(() => _twoFactorVerificationDto.TwoFactorToken)" />
|
|
</MudCardContent>
|
|
<MudCardActions>
|
|
<MudButton ButtonType="ButtonType.Submit" Variant="Variant.Filled" Color="Color.Primary" Class="ml-auto">Register</MudButton>
|
|
</MudCardActions>
|
|
</MudCard>
|
|
</MudItem>
|
|
<MudItem xs="12" sm="5">
|
|
<MudPaper Class="pa-4 mud-height-full">
|
|
<MudText Typo="Typo.subtitle2">Validation Summary</MudText>
|
|
@if (_showSuccess)
|
|
{
|
|
<MudText Color="Color.Success">Success</MudText>
|
|
}
|
|
else if (_showError)
|
|
{
|
|
<MudText Color="@Color.Error">
|
|
<ValidationSummary />
|
|
</MudText>
|
|
}
|
|
</MudPaper>
|
|
</MudItem>
|
|
<MudItem xs="12">
|
|
<MudText Typo="Typo.body2" Align="Align.Center">
|
|
Fill out the form correctly to see the success message.
|
|
</MudText>
|
|
</MudItem>
|
|
</MudGrid>
|
|
</EditForm> |