forked from CIT/Vmeda.Online
		
	MOBILE-3635 login: Send extra parameter on token.php check
The extra parameter can be used by Moodle to avoid throwing an error in server logs because other parameters e.g. username are not supplied.
This commit is contained in:
		
							parent
							
								
									86cf440dc1
								
							
						
					
					
						commit
						5053d579f3
					
				@ -309,7 +309,7 @@ export class CoreSitesProvider {
 | 
			
		||||
        siteUrl = CoreUrlUtils.removeUrlParams(siteUrl);
 | 
			
		||||
 | 
			
		||||
        try {
 | 
			
		||||
            data = await Http.post(siteUrl + '/login/token.php', {}).pipe(timeout(CoreWS.getRequestTimeout()))
 | 
			
		||||
            data = await Http.post(siteUrl + '/login/token.php', { appsitecheck: 1 }).pipe(timeout(CoreWS.getRequestTimeout()))
 | 
			
		||||
                .toPromise();
 | 
			
		||||
        } catch (error) {
 | 
			
		||||
            // Default error messages are kinda bad, return our own message.
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user