MOBILE-3387 login: Remove unneeded call to get public config
parent
10056908f0
commit
0d0deedfc3
|
@ -91,16 +91,7 @@ export class CoreLoginInitPage {
|
|||
});
|
||||
}
|
||||
|
||||
return this.sitesProvider.getCurrentSite().getPublicConfig().catch(() => {
|
||||
return {};
|
||||
}).then((config) => {
|
||||
return this.sitesProvider.checkRequiredMinimumVersion(config).then(() => {
|
||||
// User is logged in, go to site initial page.
|
||||
return this.loginHelper.goToSiteInitialPage();
|
||||
}).catch(() => {
|
||||
return this.loadPage();
|
||||
});
|
||||
});
|
||||
return this.loginHelper.goToSiteInitialPage();
|
||||
}
|
||||
|
||||
return this.navCtrl.setRoot('CoreLoginSitesPage');
|
||||
|
|
Loading…
Reference in New Issue