Add OtpDialogService for mobile-friendly OTP authentication dialog

This commit is contained in:
masoodafar-web
2025-11-17 02:53:51 +03:30
parent a0c1452a84
commit 52b8298a18
34 changed files with 1495 additions and 279 deletions
+12 -1
View File
@@ -13,11 +13,22 @@ public partial class Index
private string? _email;
private bool _isLoadingPackages;
private List<Pack> _packs = new();
[Inject] private AuthService AuthService { get; set; } = default!;
protected override async Task OnInitializedAsync()
{
await LoadPackagesAsync();
if (await AuthService.IsAuthenticatedAsync())
{
if ((await AuthService.IsCompleteRegisterAsync()))
{
Navigation.NavigateTo(RouteConstants.Profile.Index);
}
else
{
Navigation.NavigateTo(RouteConstants.Registration.Wizard);
}
}
//string mobileNumber = "09387342688";