diff --git a/MP-TAB3/Components/CmpTop.razor.cs b/MP-TAB3/Components/CmpTop.razor.cs
index d48189d6..73b54a5f 100644
--- a/MP-TAB3/Components/CmpTop.razor.cs
+++ b/MP-TAB3/Components/CmpTop.razor.cs
@@ -67,26 +67,30 @@ namespace MP_TAB3.Components
#region Protected Methods
- protected async Task RefreshLogIn(string decodValue)
+ protected async Task RefreshScadLogIn(string decodValue)
{
bool done = false;
- if (TypeScadLogin <= 0 || TypeScadLogin == 2)
+ // solo se non è logout!!!
+ if (!NavMan.Uri.Contains("logout"))
{
- done = await MsgServ.DoLogIn(decodValue, false);
- }
- else
- {
- done = await MsgServ.DoLogIn(decodValue, true);
- }
- if (done)
- {
- if (!string.IsNullOrEmpty(LastOpenedPage) && !string.IsNullOrEmpty(CurrMacc))
+ if (TypeScadLogin <= 0 || TypeScadLogin == 2)
{
- NavMan.NavigateTo(LastOpenedPage);
+ done = await MsgServ.DoLogIn(decodValue, false);
}
else
{
- NavMan.NavigateTo("status-map");
+ done = await MsgServ.DoLogIn(decodValue, true);
+ }
+ if (done )
+ {
+ if (!string.IsNullOrEmpty(LastOpenedPage) && !string.IsNullOrEmpty(CurrMacc))
+ {
+ NavMan.NavigateTo(LastOpenedPage);
+ }
+ else if(!NavMan.Uri.Contains(LastOpenedPage))
+ {
+ NavMan.NavigateTo("status-map");
+ }
}
}
}
@@ -149,7 +153,7 @@ namespace MP_TAB3.Components
CurrMacc = await MsgServ.IdxMaccGet();
CurrOprTknLS = await MsgServ.GetCurrOperDtoLSAsync();
- var decodedUrl = Uri.UnescapeDataString(CurrOprTknLS);
+ var currOprTokLsDeco = Uri.UnescapeDataString(CurrOprTknLS);
if (!string.IsNullOrEmpty(CurrOprTknLS))
{
var decryptedData = MsgServ.DecryptData(CurrOprTknLS);
@@ -176,7 +180,7 @@ namespace MP_TAB3.Components
}
else if (!string.IsNullOrEmpty(CurrOprTknRedis) && CurrOprTknRedis == CurrOprTknLS)
{
- await RefreshLogIn(decodedUrl);
+ await RefreshScadLogIn(currOprTokLsDeco);
await EA_UserIsOk.InvokeAsync(true);
}
}
diff --git a/MP-TAB3/MP-TAB3.csproj b/MP-TAB3/MP-TAB3.csproj
index 3067e8e9..7e9382bf 100644
--- a/MP-TAB3/MP-TAB3.csproj
+++ b/MP-TAB3/MP-TAB3.csproj
@@ -3,7 +3,7 @@