fix reindirizzamento
This commit is contained in:
@@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user