ok sistema di refresh login post F5

This commit is contained in:
zaccaria.majid
2023-12-14 16:07:17 +01:00
parent 698dd0fd00
commit b4b08d1c1a
8 changed files with 21 additions and 14 deletions
+7 -7
View File
@@ -15,6 +15,8 @@ namespace MP_TAB_SERV.Components
[Parameter]
public List<LinkMenu> CurrMenuItems { get; set; } = new List<LinkMenu>();
[Parameter]
public EventCallback<bool> EA_UserIsOk { get; set; }
#endregion Public Properties
@@ -125,7 +127,7 @@ namespace MP_TAB_SERV.Components
int expDays = SMServ.GetConfInt("cookieDayExpire");
expDT = DateTime.Now.AddDays(expDays);
var CurrDevGuid = await MsgServ.GetCurrDevGuidLSAsync();
//if (string.IsNullOrEmpty(CurrDevGuid.ToString()))
if (CurrDevGuid == Guid.Empty)
{
@@ -144,13 +146,13 @@ namespace MP_TAB_SERV.Components
if (!string.IsNullOrEmpty(decryptedData))
{
var oprObj = JsonConvert.DeserializeObject<userTknDTO>(decryptedData);
if(oprObj != null)
if (oprObj != null)
{
MsgServ.RigaOper = oprObj.currOpr;
}
}
}
CurrOprTknRedis = await TDService.OperatoreGetRedis(MatrOpr, CurrDevGuid);
@@ -164,10 +166,8 @@ namespace MP_TAB_SERV.Components
}
else if (!string.IsNullOrEmpty(CurrOprTknRedis) && CurrOprTknRedis == CurrOprTknLS)
{
if (MsgServ.RigaOper == null)
{
await RefreshLogIn(decodedUrl);
}
await RefreshLogIn(decodedUrl);
await EA_UserIsOk.InvokeAsync(true);
}
}
+1 -1
View File
@@ -84,7 +84,7 @@
<sub class="pe-1">&times;</sub>
@if (item.KitSplit)
{
<button class="btn btn-info" @onclick="()=>ShowKitDetail(item)" title="KIT esploso">
<button class="btn btn-info" @onclick="()=>ShowKitDetail(item)" title="KIT esploso" style="max-width: 2.5rem;display: flex;justify-content: center;min-height: 2.375rem;align-items: center;">
<i class="fa-solid fa-box-open"></i>
</button>
}
+1 -1
View File
@@ -3,7 +3,7 @@
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<Nullable>enable</Nullable>
<Version>6.16.2312.1414</Version>
<Version>6.16.2312.1416</Version>
<ImplicitUsings>enable</ImplicitUsings>
<RootNamespace>MP_TAB_SERV</RootNamespace>
</PropertyGroup>
+1 -1
View File
@@ -1,6 +1,6 @@
<body>
<i>Modulo MAPOSPEC </i>
<h4>Versione: 6.16.2312.1414</h4>
<h4>Versione: 6.16.2312.1416</h4>
<br /> Note di rilascio:
<ul>
<li>
+1 -1
View File
@@ -1 +1 @@
6.16.2312.1414
6.16.2312.1416
+1 -1
View File
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<item>
<version>6.16.2312.1414</version>
<version>6.16.2312.1416</version>
<url>https://nexus.steamware.net/repository/SWS/MP-TAB-SERV/stable/LAST/MP-TAB-SERV.zip</url>
<changelog>https://nexus.steamware.net/repository/SWS/MP-TAB-SERV/stable/LAST/ChangeLog.html</changelog>
<mandatory>false</mandatory>
+2 -2
View File
@@ -6,8 +6,8 @@
<div class="page" @onclick="()=>handleBodyClick()">
<main>
<CmpTop CurrMenuItems="@CurrMenuItems"></CmpTop>
@if (MsgServ.RigaOper != null || NavMan.Uri.Contains("reg-new-device"))
<CmpTop CurrMenuItems="@CurrMenuItems" EA_UserIsOk="checkIfUserOk"></CmpTop>
@if (userIsOk || NavMan.Uri.Contains("reg-new-device"))
{
<article class="content pt-1 d-flex mb-5">
<div class="" id="@bodyTipe">
+7
View File
@@ -169,6 +169,13 @@ namespace MP_TAB_SERV.Shared
await Task.Delay(1);
}
protected bool userIsOk { get; set; } = false;
protected async Task checkIfUserOk(bool isOk)
{
await Task.Delay(1);
userIsOk = isOk;
}
protected async Task ReloadMemStor()
{
// in primis svuoto...