forked from CIT/Vmeda.Online
Merge pull request #2563 from sammarshallou/MOBILE-3556
MOBILE-3556 Login: Send extra parameter on token.php check
This commit is contained in:
commit
8f958d7aec
@ -653,7 +653,8 @@ export class CoreSitesProvider {
|
|||||||
* @return A promise to be resolved if the site exists.
|
* @return A promise to be resolved if the site exists.
|
||||||
*/
|
*/
|
||||||
siteExists(siteUrl: string): Promise<void> {
|
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(() => {
|
.catch(() => {
|
||||||
// Default error messages are kinda bad, return our own message.
|
// Default error messages are kinda bad, return our own message.
|
||||||
return Promise.reject({error: this.translate.instant('core.cannotconnecttrouble')});
|
return Promise.reject({error: this.translate.instant('core.cannotconnecttrouble')});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user