MOBILE-2587 login: Don't send fake credentials in desktop apps

main
dpalou 2018-09-13 14:53:13 +02:00
parent ab1c124713
commit 7544b0addd
1 changed files with 1 additions and 1 deletions

View File

@ -378,7 +378,7 @@ export class CoreSitesProvider {
siteExists(siteUrl: string): Promise<void> { siteExists(siteUrl: string): Promise<void> {
const data: any = {}; const data: any = {};
if (!this.appProvider.isMobile()) { if (!this.appProvider.isMobile() && !this.appProvider.isDesktop()) {
// Send fake parameters for CORS. This is only needed in browser. // Send fake parameters for CORS. This is only needed in browser.
data.username = 'a'; data.username = 'a';
data.password = 'b'; data.password = 'b';