- 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

@@ -1019,14 +1019,18 @@ export const useGlobalStore = defineStore('GlobalStore', {
async loadLoginSite(router: Router) {
let isok = false
let code = 200
let stop = false
if (!await this.loadSite()) {
router.push('/signin')
stop = true
code = toolsext.ERR_RETRY_LOGIN
} else {
isok = true
}
return isok
return { isok, stop, code }
},
async loadAfterLogin() {
@@ -1891,8 +1895,11 @@ export const useGlobalStore = defineStore('GlobalStore', {
// userStore.setErrorCatch(error)
this.serverError = true
this.serverMsgError = error
return new Types.AxiosError(serv_constants.RIS_CODE_ERR, null, toolsext.ERR_GENERICO, error)
//return new Types.AxiosError(serv_constants.RIS_CODE_ERR, null, toolsext.ERR_GENERICO, error)
return false
}
return false
},
getProvinceByProv(provstr: string) {