Skip to content

Commit a23ab7f

Browse files
authored
Merge pull request #2260 from crazyserver/MOBILE-3327
MOBILE-3327 login: Treat invaliddevice error
2 parents 91dfc0b + d3d80d3 commit a23ab7f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/providers/sites.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -726,6 +726,13 @@ export class CoreSitesProvider {
726726
}
727727

728728
return this.treatInvalidAppVersion(result, siteUrl);
729+
}).catch((error) => {
730+
// Error invaliddevice is returned by Workplace server meaning the same as connecttoworkplaceapp.
731+
if (error && error.errorcode == 'invaliddevice') {
732+
return this.treatInvalidAppVersion(this.WORKPLACE_APP, siteUrl);
733+
}
734+
735+
return Promise.reject(error);
729736
});
730737
}
731738

0 commit comments

Comments
 (0)