From 1bd41058a626b818521d59a8f8e6e3e231ff54fc Mon Sep 17 00:00:00 2001 From: Surya Paolo Date: Thu, 27 Nov 2025 03:36:06 +0100 Subject: [PATCH] - se password errata deve comparire msg giusto --- src/store/Api/index.ts | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/store/Api/index.ts b/src/store/Api/index.ts index 5a11786e..7d911a0d 100755 --- a/src/store/Api/index.ts +++ b/src/store/Api/index.ts @@ -271,10 +271,15 @@ export const Api = { }, 1000); if (error.status === serv_constants.RIS_CODE__HTTP_INVALID_TOKEN) { - userStore.setServerCode(toolsext.ERR_AUTHENTICATION); - userStore.setAuth('', ''); - // throw { code: toolsext.ERR_AUTHENTICATION }; - throw { status: toolsext.ERR_RETRY_LOGIN }; + if (error.code === serv_constants.RIS_CODE_LOGIN_ERR) { + throw { status: serv_constants.RIS_CODE_LOGIN_ERR }; + } else { + userStore.setServerCode(toolsext.ERR_AUTHENTICATION); + userStore.setAuth('', ''); + // throw { code: toolsext.ERR_AUTHENTICATION }; + throw { status: toolsext.ERR_RETRY_LOGIN }; + + } } const ret: any = await this.checkTokenScaduto(