Merge pull request #1514 from dpalou/MOBILE-2587

MOBILE-2587 login: Don't send fake credentials in desktop apps
main
Juan Leyva 2018-09-18 09:55:07 +02:00 committed by GitHub
commit a6b6d28d40
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -378,7 +378,7 @@ export class CoreSitesProvider {
siteExists(siteUrl: string): Promise<void> {
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.
data.username = 'a';
data.password = 'b';