Add OtpDialogService for mobile-friendly OTP authentication dialog
This commit is contained in:
@@ -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";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user