- fix: authenticate_withUser mancava su alcuni...
- fix: '/signin' non riproponeva il login nel caso il token fosse invalido
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user