- corretto problema ROGNOSO : Risolvere la questione "Sessioni multiple", se apro 2 browser l'ultimo va a cancellare il precedente, e mi da errore di email non valida !
Il problema era sulla fetch nel service worker, gestita in quel modo personalizzato, andava in conflitto, non tenendo le chiamate bloccanti, ma uscivano prima che arrivasse la risposta del server. - Per chi è da tanto che non si collega a RISO, compare "Email non verificata"... (si risolve chiudendo su ESCI e riloggandosi)... però andrebbe sistemata. (stesso problema di prima).
This commit is contained in:
@@ -2223,18 +2223,18 @@ export const useGlobalStore = defineStore('GlobalStore', {
|
||||
if (isLogged) {
|
||||
// Fai Logout
|
||||
// console.log('Fai Logout', 'isLogged', isLogged)
|
||||
userStore.logout();
|
||||
await userStore.logout();
|
||||
this.rightDrawerOpen = true;
|
||||
return false;
|
||||
return { ris: false, status };
|
||||
} else {
|
||||
console.log('NON SONO LOGGATO... MYUSER NON TORNATO dal SRV');
|
||||
const token = localStorage.getItem(toolsext.localStorage.token);
|
||||
if (token) {
|
||||
console.log('Sbianca cmq i dati');
|
||||
// Sbianca cmq i dati
|
||||
userStore.logout();
|
||||
await userStore.logout();
|
||||
this.rightDrawerOpen = true;
|
||||
return false;
|
||||
return { ris: false, status };
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2444,6 +2444,8 @@ export const useGlobalStore = defineStore('GlobalStore', {
|
||||
username: userStore.my.username,
|
||||
};
|
||||
|
||||
console.log('getStatSite')
|
||||
|
||||
return Api.SendReq('/site/load', 'POST', paramquery)
|
||||
.then((res) => {
|
||||
// console.log('datastat', res)
|
||||
|
||||
Reference in New Issue
Block a user