Skip to content

Commit d3d80d3

Browse files
committed
MOBILE-3327 login: Treat invaliddevice error
1 parent e09de96 commit d3d80d3

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
@@ -710,6 +710,13 @@ export class CoreSitesProvider {
710710
}
711711

712712
return this.treatInvalidAppVersion(result, siteUrl);
713+
}).catch((error) => {
714+
// Error invaliddevice is returned by Workplace server meaning the same as connecttoworkplaceapp.
715+
if (error && error.errorcode == 'invaliddevice') {
716+
return this.treatInvalidAppVersion(this.WORKPLACE_APP, siteUrl);
717+
}
718+
719+
return Promise.reject(error);
713720
});
714721
}
715722

0 commit comments

Comments
 (0)