Merge pull request #2563 from sammarshallou/MOBILE-3556
MOBILE-3556 Login: Send extra parameter on token.php checkmain
commit
8f958d7aec
|
@ -653,7 +653,8 @@ export class CoreSitesProvider {
|
|||
* @return A promise to be resolved if the site exists.
|
||||
*/
|
||||
siteExists(siteUrl: string): Promise<void> {
|
||||
return this.http.post(siteUrl + '/login/token.php', {}).timeout(this.wsProvider.getRequestTimeout()).toPromise()
|
||||
return this.http.post(siteUrl + '/login/token.php', { appsitecheck: 1 }).
|
||||
timeout(this.wsProvider.getRequestTimeout()).toPromise()
|
||||
.catch(() => {
|
||||
// Default error messages are kinda bad, return our own message.
|
||||
return Promise.reject({error: this.translate.instant('core.cannotconnecttrouble')});
|
||||
|
|
Loading…
Reference in New Issue