fix reindirizzamento

This commit is contained in:
zaccaria.majid
2022-11-23 09:22:40 +01:00
parent 9a66b38dfc
commit cc054752a2
+5 -6
View File
@@ -51,9 +51,10 @@ namespace MP.INVE.Pages
if (logged)
{
operatore = MIService.ElencoOperatori();
if (operatore != null)
{
AnagOperatoriModel? currOpr = operatore.Where(x => (x.MatrOpr == int.Parse(idOPeratore)) && (x.authKey == authKey)).SingleOrDefault();
AnagOperatoriModel? currOpr = operatore.Where(x => (x.MatrOpr == int.Parse(idOPeratore)) && (x.authKey == pw)).SingleOrDefault();
if (currOpr != null)
{
@@ -66,11 +67,9 @@ namespace MP.INVE.Pages
Cognome = currOpr.Cognome,
hashAuthKey = hash
};
if (operatore.Count == 1)
{
NavManager.NavigateTo("Acquisizione");
await localStorage.SetItemAsync("MatrOpr", currOpr);
}
await localStorage.SetItemAsync("MatrOpr", currOpr);
NavManager.NavigateTo("Acquisizione");
}
}
}