forked from CIT/Vmeda.Online
		
	Merge pull request #1514 from dpalou/MOBILE-2587
MOBILE-2587 login: Don't send fake credentials in desktop apps
This commit is contained in:
		
						commit
						a6b6d28d40
					
				| @ -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'; | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user