- fix: authenticate_withUser mancava su alcuni...

- fix: '/signin' non riproponeva il login nel caso il token fosse invalido
This commit is contained in:
Surya Paolo
2025-03-14 12:52:38 +01:00
parent d190d4800e
commit 564a621aad
17 changed files with 61 additions and 35 deletions

View File

@@ -10,6 +10,7 @@ import { CFirstPageApp } from '@src/components/CFirstPageApp'
import { computed, onMounted, ref, watch } from 'vue'
import { CProvaPao } from '@src/components/CProvaPao'
import { tools } from '@tools'
import { toolsext } from '@store/Modules/toolsext'
import { Vue } from 'vue-class-component'
@@ -133,7 +134,12 @@ export default {
if (chiamaautologin) {
// console.log('CHIAMA autologin_FromLocalStorage')
await userStore.autologin_FromLocalStorage($router, $q)
const ris = await userStore.autologin_FromLocalStorage($router, $q)
if (ris?.code === toolsext.ERR_RETRY_LOGIN) {
setTimeout(() => {
$router.replace('/signin');
}, 100);
}
} else {
globalStore.finishLoading = true
}