* Turned off Login as it is not working
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
@page "/EdiCustomerOrders"
|
||||
|
||||
@attribute [Authorize]
|
||||
|
||||
@inject EdiCustomerOrderService EdiCustomerOrderService
|
||||
@inject NavigationManager NavigationManager
|
||||
@inject CustomAuthenticationStateProvider CustomAuthenticationStateProvider
|
||||
@@ -34,7 +32,7 @@
|
||||
{
|
||||
<div class="row mb-4">
|
||||
<div class="col-md-12">
|
||||
<SfButton CssClass="btn-primary" @onclick="SendOrderToSyteLine">@_text</SfButton>
|
||||
<SfButton CssClass="e-primary" IsPrimary="true" @onclick="SendOrderToSyteLine">@_text</SfButton>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
@@ -146,16 +144,16 @@
|
||||
{
|
||||
if (firstRender)
|
||||
{
|
||||
ClaimsPrincipal currentUser = CustomAuthenticationStateProvider.GetCurrentUser();
|
||||
|
||||
if (currentUser.Identity?.IsAuthenticated == false)
|
||||
{
|
||||
NavigationManager.NavigateTo("/Unauthorized");
|
||||
}
|
||||
else
|
||||
{
|
||||
// ClaimsPrincipal currentUser = CustomAuthenticationStateProvider.GetCurrentUser();
|
||||
//
|
||||
// if (currentUser.Identity?.IsAuthenticated == false)
|
||||
// {
|
||||
// NavigationManager.NavigateTo("/Unauthorized");
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
await LoadData();
|
||||
}
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user