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
@@ -5,6 +5,7 @@ using MudBlazor;
using System.Security.Cryptography;
namespace FrontOffice.Main.Pages;
public partial class Index
{
[Inject] private PackageContract.PackageContractClient PackageClient { get; set; } = default!;
@@ -68,6 +69,7 @@ public partial class Index
Snackbar.Add("لطفاً ایمیل معتبر وارد کنید.", Severity.Warning);
return;
}
Snackbar.Add("به لیست انتظار «کارا بازار سلامت» اضافه شدید.", Severity.Success);
_email = string.Empty;
}
@@ -76,14 +78,18 @@ public partial class Index
{
Navigation.NavigateTo($"{RouteConstants.Package.Detail}{packageId}");
}
private void NavigateToRegistrationWizard()
{
Navigation.NavigateTo(RouteConstants.Registration.Wizard);
}
private record Pack(long Id, string Title, string Body, string Image, long Price);
private record Plan(string Name, string Price, bool Highlight, IEnumerable<string> Features);
private record QA(string Q, string A);
private readonly List<QA> _faqs = new()
{
new("دامنهٔ اختصاصی دارم؛ قابل اتصال است؟", "بله، پشت دامنه و گواهی SSL خودتان مستقر می‌شود."),