Skip to content

Commit 8f958d7

Browse files
authored
Merge pull request #2563 from sammarshallou/MOBILE-3556
MOBILE-3556 Login: Send extra parameter on token.php check
2 parents 3a27eda + 25b1b68 commit 8f958d7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/providers/sites.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,8 @@ export class CoreSitesProvider {
653653
* @return A promise to be resolved if the site exists.
654654
*/
655655
siteExists(siteUrl: string): Promise<void> {
656-
return this.http.post(siteUrl + '/login/token.php', {}).timeout(this.wsProvider.getRequestTimeout()).toPromise()
656+
return this.http.post(siteUrl + '/login/token.php', { appsitecheck: 1 }).
657+
timeout(this.wsProvider.getRequestTimeout()).toPromise()
657658
.catch(() => {
658659
// Default error messages are kinda bad, return our own message.
659660
return Promise.reject({error: this.translate.instant('core.cannotconnecttrouble')});

0 commit comments

Comments
 (0)