- se password errata deve comparire msg giusto
This commit is contained in:
@@ -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(
|
||||||
|
|||||||
Reference in New Issue
Block a user