@inject HttpClient Client @inject IDialogService DialogService @inject LoginService LoginService @inject NavigationManager NavigationManager @page "/ChangePassword" @if (LoginService.OnlyAdmin || !LoginService.LoginRequired) { NavigationManager.NavigateTo("/"); } else { if (LoginService.IsLoggedIn) { Change Password
Change password
} else { NavigationManager.NavigateTo("/"); } }