Enhance authentication flow; add user registration completion check and update contract acceptance process

This commit is contained in:
masoodafar-web
2025-11-17 00:17:10 +03:30
parent 680ef3a7e2
commit 772ed3523e
11 changed files with 536 additions and 91 deletions
@@ -0,0 +1,35 @@
@using MudBlazor
<MudDialog>
<DialogContent>
<MudText Typo="Typo.body1" Class="mb-3">@ContentText</MudText>
<MudTextField @bind-Value="OtpCode"
Label="کد تأیید"
Variant="Variant.Outlined"
InputType="InputType.Text"
MaxLength="6"
Immediate="true"
Required="true"
RequiredError="کد تایید الزامی است"
FullWidth="true" />
</DialogContent>
<DialogActions>
<MudButton Variant="Variant.Text" OnClick="Cancel">انصراف</MudButton>
<MudButton Variant="Variant.Filled" Color="Color.Primary" OnClick="Submit" Disabled="string.IsNullOrWhiteSpace(OtpCode)">@ButtonText</MudButton>
</DialogActions>
</MudDialog>
@code {
[CascadingParameter]
private IMudDialogInstance MudDialog { get; set; }
[Parameter] public string ContentText { get; set; } = "";
[Parameter] public string ButtonText { get; set; } = "تأیید";
private string? OtpCode { get; set; }
private void Cancel() => MudDialog.Cancel();
private void Submit() => MudDialog.Close(DialogResult.Ok(OtpCode));
}