diff --git a/MP.INVE/Pages/Acquisizione.razor b/MP.INVE/Pages/Acquisizione.razor
index 67f099c5..94640064 100644
--- a/MP.INVE/Pages/Acquisizione.razor
+++ b/MP.INVE/Pages/Acquisizione.razor
@@ -1,37 +1,33 @@
@page "/Acquisizione"
-
-
-
-
diff --git a/MP.INVE/Pages/Jumper.razor.cs b/MP.INVE/Pages/Jumper.razor.cs
index a7efba86..c0cc5080 100644
--- a/MP.INVE/Pages/Jumper.razor.cs
+++ b/MP.INVE/Pages/Jumper.razor.cs
@@ -12,9 +12,11 @@ namespace MP.INVE.Pages
{
#region Protected Properties
- protected string authKey { get; set; } = null!;
+ protected string authKey { get; set; } = "";
- protected string idOPeratore { get; set; } = null!;
+ protected string codMag { get; set; } = "";
+
+ protected string idOpr { get; set; } = "";
protected int inveSessionId { get; set; } = 0;
@@ -38,21 +40,22 @@ namespace MP.INVE.Pages
{
await Task.Delay(1);
var uri = NavManager.ToAbsoluteUri(NavManager.Uri);
- if (QueryHelpers.ParseQuery(uri.Query).TryGetValue("MatrOpr", out var _matrOpr) && QueryHelpers.ParseQuery(uri.Query).TryGetValue("UserAuthKey", out var _authKey) && QueryHelpers.ParseQuery(uri.Query).TryGetValue("idSessione", out var _inveSessionId))
+ if (QueryHelpers.ParseQuery(uri.Query).TryGetValue("MatrOpr", out var _matrOpr) && QueryHelpers.ParseQuery(uri.Query).TryGetValue("UserAuthKey", out var _authKey) && QueryHelpers.ParseQuery(uri.Query).TryGetValue("idSessione", out var _inveSessionId) && QueryHelpers.ParseQuery(uri.Query).TryGetValue("idMag", out var _codMag))
{
- idOPeratore = _matrOpr;
+ idOpr = _matrOpr;
authKey = _authKey;
+ codMag = _codMag;
inveSessionId = int.Parse(_inveSessionId);
}
string pw = MIService.DeriptData(authKey);
- logged = MIService.loginOperatore(int.Parse(idOPeratore), pw);
+ logged = MIService.loginOperatore(int.Parse(idOpr), pw);
if (logged)
{
operatore = MIService.ElencoOperatori();
if (operatore != null)
{
- AnagOperatoriModel? currOpr = operatore.Where(x => (x.MatrOpr == int.Parse(idOPeratore)) && (x.authKey == pw)).SingleOrDefault();
+ AnagOperatoriModel? currOpr = operatore.Where(x => (x.MatrOpr == int.Parse(idOpr)) && (x.authKey == pw)).SingleOrDefault();
if (currOpr != null)
{
@@ -69,7 +72,7 @@ namespace MP.INVE.Pages
await localStorage.SetItemAsync("MatrOpr", currOpr);
await sessionStorage.SetItemAsync("idSessione", inveSessionId);
}
- NavManager.NavigateTo($"Acquisizione?idSessione={inveSessionId}&idOperatore={idOPeratore}");
+ NavManager.NavigateTo($"Acquisizione?idSess={inveSessionId}&idOpr={idOpr}&codMag={codMag}");
}
}
}
diff --git a/MP.INVE/Pages/_Layout.cshtml b/MP.INVE/Pages/_Layout.cshtml
index 3059250f..7c5553b6 100644
--- a/MP.INVE/Pages/_Layout.cshtml
+++ b/MP.INVE/Pages/_Layout.cshtml
@@ -32,9 +32,7 @@
-
-
@*Gestione autoriconnessione: https://github.com/dotnet/aspnetcore/issues/38305 (vedere anche https://docs.microsoft.com/it-it/aspnet/core/blazor/fundamentals/signalr?view=aspnetcore-6.0#modify-the-reconnection-handler-blazor-server)*@