LoginRequired comp aggiunto
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
<div class="card shadow-lg">
|
||||
<div class="card-header">
|
||||
<h1 class="fs-1">Login Required</h1>
|
||||
</div>
|
||||
<div class="card-body text-center">
|
||||
<img src="./images/RescrictedArea.jpg" class="img-fluid" width="400" />
|
||||
</div>
|
||||
<div class="card-footer">
|
||||
<p>You must login in order to access DCA WebDoor System</p>
|
||||
</div>
|
||||
</div>
|
||||
@@ -231,12 +231,10 @@ namespace WebDoorCreator.UI.Components.Gen
|
||||
{
|
||||
// reset preliminare
|
||||
listRecord = new List<string>();
|
||||
if (!NavManager.Uri.Contains("UserAdmin"))
|
||||
{
|
||||
//if (!NavManager.Uri.Contains("UserAdmin"))
|
||||
//{
|
||||
if (!string.IsNullOrEmpty(userId) && string.IsNullOrEmpty(userRole))
|
||||
{
|
||||
//var user = await _userManager.FindByNameAsync(userId);
|
||||
//var obj = await WDCUService.UserDataGetById(user.Id);
|
||||
var obj = await WDCUService.UserDataGetByName(userId);
|
||||
if (obj != null)
|
||||
{
|
||||
@@ -270,7 +268,7 @@ namespace WebDoorCreator.UI.Components.Gen
|
||||
fixSelCompany();
|
||||
userClaimsList = listRecord;
|
||||
}
|
||||
}
|
||||
//}
|
||||
}
|
||||
|
||||
#endregion Protected Methods
|
||||
|
||||
@@ -185,4 +185,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</Authorized>
|
||||
<NotAuthorized>
|
||||
<LoginRequiredArea></LoginRequiredArea>
|
||||
</NotAuthorized>
|
||||
</AuthorizeView>
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 31 KiB |
Reference in New Issue
Block a user