Merge pull request #2260 from crazyserver/MOBILE-3327

MOBILE-3327 login: Treat invaliddevice error
main
Juan Leyva 2020-01-29 15:53:51 +01:00 committed by GitHub
commit a23ab7f1eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -726,6 +726,13 @@ export class CoreSitesProvider {
}
return this.treatInvalidAppVersion(result, siteUrl);
}).catch((error) => {
// Error invaliddevice is returned by Workplace server meaning the same as connecttoworkplaceapp.
if (error && error.errorcode == 'invaliddevice') {
return this.treatInvalidAppVersion(this.WORKPLACE_APP, siteUrl);
}
return Promise.reject(error);
});
}