- se password errata deve comparire msg giusto

This commit is contained in:
Surya Paolo
2025-11-27 03:36:06 +01:00
parent 281be361ba
commit 1bd41058a6

View File

@@ -271,10 +271,15 @@ export const Api = {
}, 1000); }, 1000);
if (error.status === serv_constants.RIS_CODE__HTTP_INVALID_TOKEN) { if (error.status === serv_constants.RIS_CODE__HTTP_INVALID_TOKEN) {
if (error.code === serv_constants.RIS_CODE_LOGIN_ERR) {
throw { status: serv_constants.RIS_CODE_LOGIN_ERR };
} else {
userStore.setServerCode(toolsext.ERR_AUTHENTICATION); userStore.setServerCode(toolsext.ERR_AUTHENTICATION);
userStore.setAuth('', ''); userStore.setAuth('', '');
// throw { code: toolsext.ERR_AUTHENTICATION }; // throw { code: toolsext.ERR_AUTHENTICATION };
throw { status: toolsext.ERR_RETRY_LOGIN }; throw { status: toolsext.ERR_RETRY_LOGIN };
}
} }
const ret: any = await this.checkTokenScaduto( const ret: any = await this.checkTokenScaduto(